Midnight

#051C33

General Information about Midnight (#051C33)

The hexadecimal color code #051C33, often referred to as 'Midnight,' is a dark, desaturated blue-black color. In the RGB color model, it consists of 5/255 red (2%), 28/255 green (11%), and 51/255 blue (20%). This composition results in a color that is perceived as deep and mysterious, reminiscent of a starless night sky. Colors like Midnight are often used to convey a sense of sophistication, depth, and tranquility. In CMYK, the values are 90% cyan, 45% magenta, 0% yellow, and 80% black. Due to its dark nature, it's best paired with lighter, contrasting colors to ensure readability and visual clarity, especially in digital applications and print media.

The hex color #051C33, also known as Midnight, presents some accessibility challenges, particularly concerning color contrast. When used as a background color, it requires very light text (such as white or light gray) 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. Using #051C33 with darker text colors would likely fail these requirements, making content difficult to read for users with visual impairments. Designers should carefully evaluate color combinations and use tools to verify contrast ratios. Moreover, providing alternative styling options (e.g., a high-contrast mode) can significantly improve the accessibility of web content for all users, no matter if they have impairments or not.

Shades

Digital Color Formats

RGB
5 28 51
RGB5 28 51
Red
Green
Blue
HSL
210deg 82.14% 10.98%
21082.1410.98HSL
Hue
Saturation
Lightness
HWB
210deg 1.96% 80%
2101.9680HWB
Hue
Whiteness
Blackness
hex#051C33
rgb5 28 51
hsl210deg 82.14% 10.98%
cmyk90.2% 45.1% 0% 80%
hwb210deg 1.96% 80%
xyz-d650.01 0.01 0.03
oklch0.2225 0.0537 250.87
oklab0.2225 -0.02 -0.05
CMYK
90.2% 45.1% 0% 80%
90.245.1080CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2225 0.0537 250.87
0.22250.0537250.87LCH
Lightness
Chroma
Hue
OKLAB
0.2225 -0.02 -0.05
0.2225-0.02-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons