Midnight

#040C30

General Information about #040C30

The hex color #040C30, often referred to as 'Midnight', is a very dark shade of blue, bordering on black. It sits at the lower end of the color spectrum in terms of lightness, possessing minimal luminance. Its composition primarily consists of a small amount of blue, with negligible red and green components. In the RGB color model, it is represented as R:4, G:12, B:48. This color evokes feelings of calmness, depth, and sophistication. Midnight is often associated with nighttime, mystery, and the stillness of the late hours. Its understated elegance makes it a popular choice for designs aiming to convey a sense of professionalism or quiet luxury. The color's low saturation also makes it a versatile background or accent color.

The hex color #040C30, also known as Midnight, presents significant accessibility challenges, particularly concerning contrast. As a very dark shade, it demands careful consideration when used for text or interactive elements. Foreground elements, such as text or icons, need to be sufficiently bright to ensure readability against this dark background. A contrast ratio of at least 4.5:1 is recommended for normal-sized text and 3:1 for larger text to comply with WCAG 2.1 AA standards. When using this color, ensure thorough testing with accessibility tools to verify that the contrast meets these guidelines for users with visual impairments. Moreover, avoid using this color alone to convey critical information, and always provide supplementary cues like labels or icons to ensure inclusive design. This attention to detail will guarantee a more accessible and user-friendly experience for all users.

Shades

Digital Color Formats

RGB
4 12 48
RGB4 12 48
Red
Green
Blue
HSL
229.09deg 84.62% 10.2%
229.0984.6210.2HSL
Hue
Saturation
Lightness
HWB
229.09deg 1.57% 81.18%
229.091.5781.18HWB
Hue
Whiteness
Blackness
hex#040C30
rgb4 12 48
hsl229.09deg 84.62% 10.2%
cmyk91.67% 75% 0% 81.18%
hwb229.09deg 1.57% 81.18%
xyz-d650.01 0.01 0.03
oklch0.176 0.073 266.82
oklab0.176 0 -0.07
CMYK
91.67% 75% 0% 81.18%
91.6775081.18CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.176 0.073 266.82
0.1760.073266.82LCH
Lightness
Chroma
Hue
OKLAB
0.176 0 -0.07
0.1760-0.07LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons