Midnight

#05142F

General Information About Midnight (#05142F)

The hexadecimal color code #05142F, commonly referred to as Midnight, represents a very dark shade of blue. It is composed of 2.0% red, 7.8% green, and 18.4% blue. In the RGB color space, this translates to (5, 20, 47). Its subdued nature makes it a sophisticated choice for various design applications. In terms of color properties, it has a hue angle of 217.7 degrees, a saturation of 80.0%, and a lightness of 9.4%. The CMYK representation of this color is C:90%, M:57%, Y:0%, K:82%. Due to its low luminance, Midnight is often used to create a sense of depth or to provide a stark contrast when paired with lighter colors. Its unique properties and elegant character make it a versatile color choice for different contexts.

The hex color #05142F, also known as Midnight, presents significant accessibility challenges, primarily due to its very dark nature. When used as a background color, it necessitates extremely light text to achieve 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. Given the low luminance of #05142F, ensuring adequate contrast requires careful selection of foreground colors. White or very light shades of yellow or green are generally necessary. However, even with these colors, it's crucial to test the combination using contrast checkers to guarantee compliance. Failure to meet contrast requirements can severely impact users with visual impairments, making content difficult or impossible to read. Therefore, designers should exercise caution when using #05142F and prioritize accessibility by thoroughly evaluating contrast ratios and considering alternative, more accessible color choices where appropriate.

Shades

Digital Color Formats

RGB
5 20 47
RGB5 20 47
Red
Green
Blue
HSL
218.57deg 80.77% 10.2%
218.5780.7710.2HSL
Hue
Saturation
Lightness
HWB
218.57deg 1.96% 81.57%
218.571.9681.57HWB
Hue
Whiteness
Blackness
hex#05142F
rgb5 20 47
hsl218.57deg 80.77% 10.2%
cmyk89.36% 57.45% 0% 81.57%
hwb218.57deg 1.96% 81.57%
xyz-d650.01 0.01 0.03
oklch0.1964 0.0583 260.21
oklab0.1964 -0.01 -0.06
CMYK
89.36% 57.45% 0% 81.57%
89.3657.45081.57CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1964 0.0583 260.21
0.19640.0583260.21LCH
Lightness
Chroma
Hue
OKLAB
0.1964 -0.01 -0.06
0.1964-0.01-0.06LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons