Midnight

#05172F

General Information about Midnight (#05172F)

The hex color #05172F, also known as 'Midnight,' is a deep, dark shade of blue that evokes a sense of mystery, sophistication, and tranquility. It belongs to the family of blue colors but is characterized by its extremely low luminance value, making it appear almost black in many contexts. In the RGB color model, it is composed of 5 red, 23 green, and 47 blue components. This color is often used in designs to create a sense of depth, elegance, and calmness. Due to its dark nature, it is crucial to pair it with lighter colors to provide sufficient contrast and readability, especially in text-based applications. The color can also be considered as an almost-black color with a minor blue undertone. It is a very suitable color for different kinds of applications in various fields.

The hex color #05172F, often referred to as 'Midnight,' presents significant accessibility challenges, particularly in text-based contexts. Its very low luminance value of 1.4 makes it difficult to achieve sufficient contrast against lighter backgrounds. According to WCAG guidelines, a contrast ratio of at least 4.5:1 is recommended for standard text and 3:1 for large text to ensure readability for individuals with visual impairments. When using #05172F for text, a very light color, such as white (#FFFFFF) or a very pale yellow, is generally required to meet these contrast standards. However, even with a white background, the contrast ratio may be borderline, necessitating careful evaluation. It's crucial to use contrast checking tools to verify compliance with accessibility guidelines. For graphical elements and UI components, the contrast requirements are slightly lower (3:1), but careful consideration is still necessary. Avoid using this color for critical interactive elements without thorough testing and validation.

Shades

Digital Color Formats

RGB
5 23 47
RGB5 23 47
Red
Green
Blue
HSL
214.29deg 80.77% 10.2%
214.2980.7710.2HSL
Hue
Saturation
Lightness
HWB
214.29deg 1.96% 81.57%
214.291.9681.57HWB
Hue
Whiteness
Blackness
hex#05172F
rgb5 23 47
hsl214.29deg 80.77% 10.2%
cmyk89.36% 51.06% 0% 81.57%
hwb214.29deg 1.96% 81.57%
xyz-d650.01 0.01 0.03
oklch0.2049 0.0539 255.84
oklab0.2049 -0.01 -0.05
CMYK
89.36% 51.06% 0% 81.57%
89.3651.06081.57CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2049 0.0539 255.84
0.20490.0539255.84LCH
Lightness
Chroma
Hue
OKLAB
0.2049 -0.01 -0.05
0.2049-0.01-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons