Midnight

#031131

General Information

#031131, also known as Midnight, is a very dark shade of blue that evokes feelings of mystery, sophistication, and depth. It belongs to the blue color family but is so dark that it often appears almost black. In the RGB color model, #031131 is composed of 1.18% red, 6.67% green, and 19.22% blue. Its CMYK values are 0.94, 0.49, 0.00, 0.81, indicating that it is created with a high percentage of cyan and a moderate amount of magenta, with very little yellow and a significant amount of black. This color is commonly associated with night, the sea, and the unknown. Its hexadecimal representation makes it easily usable in digital design and web development.

The hex color #031131, a very dark shade of blue often referred to as Midnight, presents significant accessibility challenges, particularly concerning color contrast. When used as a background color, it requires extremely light text to ensure readability. A contrast ratio of at least 4.5:1 is crucial for compliance with WCAG AA standards, and a ratio of 7:1 is preferred for WCAG AAA compliance. Therefore, pairing #031131 with colors like pure white (#FFFFFF) or very light yellows or greens is essential. Avoid using it with darker colors, as this would render the text illegible for many users, including those with visual impairments. Careful consideration of font size and weight can also slightly mitigate contrast issues, but the primary focus should always be on achieving sufficient contrast through color selection. Tools like contrast checkers can be invaluable in verifying compliance.

Shades

Digital Color Formats

RGB
3 17 49
RGB3 17 49
Red
Green
Blue
HSL
221.74deg 88.46% 10.2%
221.7488.4610.2HSL
Hue
Saturation
Lightness
HWB
221.74deg 1.18% 80.78%
221.741.1880.78HWB
Hue
Whiteness
Blackness
hex#031131
rgb3 17 49
hsl221.74deg 88.46% 10.2%
cmyk93.88% 65.31% 0% 80.78%
hwb221.74deg 1.18% 80.78%
xyz-d650.01 0.01 0.03
oklch0.1888 0.0675 261.87
oklab0.1888 -0.01 -0.07
CMYK
93.88% 65.31% 0% 80.78%
93.8865.31080.78CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1888 0.0675 261.87
0.18880.0675261.87LCH
Lightness
Chroma
Hue
OKLAB
0.1888 -0.01 -0.07
0.1888-0.01-0.07LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons