Midnight

#040F30

General Information about #040F30 (Midnight)

The hexadecimal color code #040F30, also known as Midnight, is a very dark shade of blue. It's composed of 1.57% red, 5.88% green, and 18.82% blue. In the RGB color model, this translates to 4 red, 15 green, and 48 blue. The corresponding CMYK color code is 92% cyan, 69% magenta, 0% yellow, and 81% black. Midnight's subdued nature lends itself to designs aiming for a sense of depth, mystery, or sophistication. It is often used as a background color to create a dramatic effect or as an accent color to add a touch of elegance. Its subtle nuances can be further explored by adjusting its saturation and brightness in various design applications. Because it is so dark, it needs to be paired with significantly lighter colors for legibility. This color is not a common color in nature, but rather more often seen in industrial applications.

The hex color #040F30, also known as Midnight, presents significant accessibility challenges due to its very dark nature. Its low luminance results in poor contrast against lighter backgrounds, making text or interactive elements difficult to perceive for users with visual impairments. To ensure accessibility, it's crucial to pair this color with significantly lighter hues. A contrast ratio of at least 4.5:1 is recommended for normal text and 3:1 for large text, as per WCAG guidelines. Using tools to measure contrast ratios is essential for validating sufficient contrast. Additionally, relying solely on color to convey information is discouraged; supplementary cues like text labels or icons are vital for users who may not be able to differentiate colors effectively. Considering user preferences and providing alternative color themes can further enhance the user experience.

Shades

Digital Color Formats

RGB
4 15 48
RGB4 15 48
Red
Green
Blue
HSL
225 84.62% 10.2%
22584.6210.2HSL
Hue
Saturation
Lightness
HWB
225 1.57% 81.18%
2251.5781.18HWB
Hue
Whiteness
Blackness
hex#040F30
rgb4 15 48
hsl225 84.62% 10.2%
cmyk91.67% 68.75% 0% 81.18%
hwb225 1.57% 81.18%
xyz0.75 0.58 2.87
CMYK
91.67% 68.75% 0% 81.18%
91.6768.75081.18CMYK
Cyan
Magenta
Yellow
Key
XYZ
0.75 0.58 2.87
0.750.582.87XYZ
X
Y
Z

Alternative colors

Applications

Complementary color

Buttons

HexColo.rs © 2025