Midnight

#051031

General Information about #051031

The hex color code #051031, often referred to as 'Midnight,' is a very dark shade of blue, almost appearing black to the untrained eye. It belongs to the family of blue colors, but its low luminance and saturation give it a subdued, mysterious character. In the RGB color model, it consists of 5 parts red, 16 parts green, and 49 parts blue. In the CMYK color model, used for printing, it contains high percentages of cyan, magenta, and yellow with a small amount of black, highlighting its suitability for creating deep, rich tones in printed materials. This color is commonly associated with night, depth, sophistication, and can evoke feelings of calmness and introspection.

The hex color #051031, also known as Midnight, presents significant accessibility challenges due to its very dark nature. Its low luminance creates insufficient contrast with lighter text or interface elements, potentially rendering content unreadable for users with visual impairments. According to WCAG guidelines, sufficient contrast ratios are essential for ensuring readability. For normal text (14pt/18px and larger), a contrast ratio of at least 4.5:1 is required, while large text (18pt/24px or larger) needs a contrast ratio of 3:1. Given the darkness of #051031, it's crucial to pair it with very light colors like white or light yellow to achieve acceptable contrast. Using contrast checking tools during design and development is highly recommended to ensure compliance with accessibility standards and provide an inclusive user experience. Consider alternative, lighter shades if accessibility cannot be guaranteed.

Shades

Digital Color Formats

RGB
5 16 49
RGB5 16 49
Red
Green
Blue
HSL
225 81.48% 10.59%
22581.4810.59HSL
Hue
Saturation
Lightness
HWB
225 1.96% 80.78%
2251.9680.78HWB
Hue
Whiteness
Blackness
hex#051031
rgb5 16 49
hsl225 81.48% 10.59%
cmyk89.8% 67.35% 0% 80.78%
hwb225 1.96% 80.78%
xyz0.8 0.62 2.98
CMYK
89.8% 67.35% 0% 80.78%
89.867.35080.78CMYK
Cyan
Magenta
Yellow
Key
XYZ
0.8 0.62 2.98
0.80.622.98XYZ
X
Y
Z

Alternative colors

Applications

Complementary color

Buttons

HexColo.rs © 2025