Midnight

#021C33

General Information about Midnight (#021C33)

The hex color code #021C33, also known as Midnight, is a very dark shade of blue. It is composed of 0.78% red, 10.98% green, and 20% blue. In the RGB color model, this corresponds to the numerical values of Red: 2, Green: 28, and Blue: 51. The color is often associated with feelings of calm, depth, and sophistication. Because of its very dark nature, it is often used in designs where a subtle, understated aesthetic is desired. Midnight is commonly utilized in backgrounds, text elements, and other design elements where a sense of sophistication and depth is needed. The color is perceived as a cool color that works well with contrasting colors.

The hex color #021C33, also known as Midnight, presents some accessibility challenges due to its very dark nature. When used as a background color, it requires extremely light text to ensure sufficient contrast for readability. According to WCAG guidelines, the contrast ratio between text and background should be at least 4.5:1 for normal text and 3:1 for large text to meet AA compliance. Considering this color's darkness, developers must carefully select text colors, aiming for shades of white or very light yellows to meet these contrast requirements. Failure to do so can result in content that is difficult or impossible for users with visual impairments to read. Furthermore, consider providing alternative high-contrast themes to accommodate users' preferences. Proper color contrast is essential for making websites accessible and inclusive for all users, including those with low vision or color blindness.

Shades

Digital Color Formats

RGB
2 28 51
RGB2 28 51
Red
Green
Blue
HSL
208.16deg 92.45% 10.39%
208.1692.4510.39HSL
Hue
Saturation
Lightness
HWB
208.16deg 0.78% 80%
208.160.7880HWB
Hue
Whiteness
Blackness
hex#021C33
rgb2 28 51
hsl208.16deg 92.45% 10.39%
cmyk96.08% 45.1% 0% 80%
hwb208.16deg 0.78% 80%
xyz-d650.01 0.01 0.03
oklch0.2208 0.0555 248.11
oklab0.2208 -0.02 -0.05
CMYK
96.08% 45.1% 0% 80%
96.0845.1080CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2208 0.0555 248.11
0.22080.0555248.11LCH
Lightness
Chroma
Hue
OKLAB
0.2208 -0.02 -0.05
0.2208-0.02-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons