Midnight

#040E2D

About Midnight (#040E2D)

The color #040E2D, commonly referred to as Midnight, is a very dark shade of blue, almost indistinguishable from black to the naked eye under normal lighting conditions. It belongs to the blue color family and is characterized by its extremely low luminance value. In the RGB color model, it is composed of 4 parts red, 14 parts green, and 45 parts blue. In the CMYK color model, used primarily in printing, it consists of 91% cyan, 69% magenta, 0% yellow, and 82% black. This color evokes feelings of sophistication, depth, and mystery, often associated with the night sky or the deep sea. Its hexadecimal representation makes it easily usable in digital design and web development.

The hex color #040E2D, also known as Midnight, presents significant accessibility challenges, particularly for users with visual impairments. Its extremely low luminance value of 0.004 makes it difficult to distinguish from black, resulting in poor contrast against light backgrounds. According to WCAG guidelines, the contrast ratio between text and background should be at least 4.5:1 for normal text and 3:1 for large text. Using #040E2D for text or interactive elements against a standard white background would fail these requirements, making the content illegible for many users. Designers should avoid using this color for essential information, and when unavoidable, ensure a very light color is chosen for text or interactive elements placed on this background. Thorough testing with accessibility tools and users with disabilities is crucial to confirm usability.

Shades

Digital Color Formats

RGB
4 14 45
RGB4 14 45
Red
Green
Blue
HSL
225.37deg 83.67% 9.61%
225.3783.679.61HSL
Hue
Saturation
Lightness
HWB
225.37deg 1.57% 82.35%
225.371.5782.35HWB
Hue
Whiteness
Blackness
hex#040E2D
rgb4 14 45
hsl225.37deg 83.67% 9.61%
cmyk91.11% 68.89% 0% 82.35%
hwb225.37deg 1.57% 82.35%
xyz-d650.01 0.01 0.03
oklch0.1776 0.0648 264.89
oklab0.1776 -0.01 -0.06
CMYK
91.11% 68.89% 0% 82.35%
91.1168.89082.35CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1776 0.0648 264.89
0.17760.0648264.89LCH
Lightness
Chroma
Hue
OKLAB
0.1776 -0.01 -0.06
0.1776-0.01-0.06LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons