Midnight

#031538

General Information about Midnight (#031538)

The hex color code #031538, also known as Midnight, is a very dark shade of blue. It's composed of 1.18% red, 8.24% green, and 21.96% blue. In the RGB color space, it has values of R:3, G:21, and B:56. In the CMYK color space, it is composed of C:0.95, M:0.62, Y:0.00, K:0.78. The color's darkness is due to the low values across all three primary color components. Midnight evokes a sense of mystery, depth, and sophistication. It is often associated with the night, darkness, and calmness. It is primarily used in designs that aim to convey a sense of elegance or drama.

The hex color #031538, often referred to as Midnight, presents significant accessibility challenges due to its extremely dark nature. When used as a background color, it requires very light text (approaching 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. With #031538, achieving this contrast requires careful selection of foreground colors. It's crucial to avoid pairing it with other dark colors, as this would render text illegible for many users, especially those with visual impairments. Using color contrast tools to verify compliance is essential. Furthermore, relying solely on color to convey information should be avoided; supplementary cues like text labels or icons should be included to ensure inclusivity.

Shades

Digital Color Formats

RGB
3 21 56
RGB3 21 56
Red
Green
Blue
HSL
219.62deg 89.83% 11.57%
219.6289.8311.57HSL
Hue
Saturation
Lightness
HWB
219.62deg 1.18% 78.04%
219.621.1878.04HWB
Hue
Whiteness
Blackness
hex#031538
rgb3 21 56
hsl219.62deg 89.83% 11.57%
cmyk94.64% 62.5% 0% 78.04%
hwb219.62deg 1.18% 78.04%
xyz-d650.01 0.01 0.04
oklch0.2063 0.0731 260.6
oklab0.2063 -0.01 -0.07
CMYK
94.64% 62.5% 0% 78.04%
94.6462.5078.04CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.04
0.010.010.04XYZ
X
Y
Z
OKLCH
0.2063 0.0731 260.6
0.20630.0731260.6LCH
Lightness
Chroma
Hue
OKLAB
0.2063 -0.01 -0.07
0.2063-0.01-0.07LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons