Midnight

#031231

General Information about #031231

The hex color #031231, also known as Midnight, is a very dark shade of blue with a hexadecimal value of 031231. It belongs to the blue color family, although its darkness makes it appear almost black. The color is composed of 1.18% red, 7.06% green, and 19.22% blue. In the RGB color model, it is represented as (3, 18, 49). The CMYK representation is (94, 63, 0, 81). Midnight blue is often associated with sophistication, mystery, and depth, making it a popular choice in various design applications. Due to its low luminance, it should be used cautiously in contexts where readability and accessibility are crucial. The perceived darkness is why it's associated with night and calm.

The hex color #031231, often referred to as Midnight, presents significant accessibility challenges, especially in web design. Its extremely low luminance value (very close to black) results in poor contrast against most standard background colors, including white. This makes text or graphical elements using #031231 difficult, if not impossible, for users with visual impairments to perceive. Adherence to WCAG (Web Content Accessibility Guidelines) contrast ratio requirements is crucial; using #031231 for text requires an extremely light foreground color to achieve sufficient contrast. Developers should consider alternative, lighter shades for improved readability and overall accessibility. Tools like contrast checkers can help ensure compliance and a better user experience for everyone.

Shades

Digital Color Formats

RGB
3 18 49
RGB3 18 49
Red
Green
Blue
HSL
220.43deg 88.46% 10.2%
220.4388.4610.2HSL
Hue
Saturation
Lightness
HWB
220.43deg 1.18% 80.78%
220.431.1880.78HWB
Hue
Whiteness
Blackness
hex#031231
rgb3 18 49
hsl220.43deg 88.46% 10.2%
cmyk93.88% 63.27% 0% 80.78%
hwb220.43deg 1.18% 80.78%
xyz-d650.01 0.01 0.03
oklch0.1914 0.066 260.93
oklab0.1914 -0.01 -0.07
CMYK
93.88% 63.27% 0% 80.78%
93.8863.27080.78CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1914 0.066 260.93
0.19140.066260.93LCH
Lightness
Chroma
Hue
OKLAB
0.1914 -0.01 -0.07
0.1914-0.01-0.07LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons