Midnight

#051931

About Midnight (#051931)

The hex color code #051931, often referred to as 'Midnight,' is a deep, dark shade of blue that evokes feelings of night, mystery, and sophistication. In the RGB color model, it consists of 2.0% red, 9.8% green, and 19.2% blue. This composition makes it predominantly a blue hue with very low saturation and brightness. It belongs to the family of dark blues and is frequently used in design to create a sense of elegance and depth. Due to its darkness, it's essential to use it carefully, especially in contexts where readability is crucial, pairing it with light and contrasting colors.

The hex color #051931, also known as Midnight, presents significant accessibility challenges due to its extremely dark nature. When used as a background color, it requires very light text (ideally white or near-white) to ensure sufficient contrast for readability. According to WCAG guidelines, a contrast ratio of at least 4.5:1 is recommended for normal text and 3:1 for large text. This color is highly unlikely to meet those standards with most text colors other than almost pure white. Designers must carefully evaluate the color pairings, use contrast checking tools, and consider the needs of users with visual impairments. Overuse of such a dark color can also contribute to eye strain, especially in prolonged use scenarios. Therefore, it's crucial to use this color sparingly and thoughtfully, pairing it with appropriate, highly contrasting elements to maintain accessibility and usability.

Shades

Digital Color Formats

RGB
5 25 49
RGB5 25 49
Red
Green
Blue
HSL
212.73deg 81.48% 10.59%
212.7381.4810.59HSL
Hue
Saturation
Lightness
HWB
212.73deg 1.96% 80.78%
212.731.9680.78HWB
Hue
Whiteness
Blackness
hex#051931
rgb5 25 49
hsl212.73deg 81.48% 10.59%
cmyk89.8% 48.98% 0% 80.78%
hwb212.73deg 1.96% 80.78%
xyz-d650.01 0.01 0.03
oklch0.2122 0.0544 254.16
oklab0.2122 -0.01 -0.05
CMYK
89.8% 48.98% 0% 80.78%
89.848.98080.78CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2122 0.0544 254.16
0.21220.0544254.16LCH
Lightness
Chroma
Hue
OKLAB
0.2122 -0.01 -0.05
0.2122-0.01-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons