Midnight

#08172D

General Information about #08172D

The hex color code #08172D, often referred to as 'Midnight,' is a deep, dark shade of blue. It's composed of 3.14% red, 9.02% green, and 17.65% blue. In the RGB color space, it is represented as RGB(8, 23, 45). This color is predominantly used to evoke feelings of calmness, sophistication, and depth. In color psychology, dark blues are often associated with trustworthiness, stability, and intelligence. Its hexadecimal representation means that 8 parts red, 17 parts green and 2D parts blue are mixed together. This gives a unique color value with very low saturation and brightness. The color, being a darker tone, is suitable for backgrounds and accents where a strong contrast is desired.

The hex color #08172D, also known as Midnight, presents several accessibility considerations for web developers. Given its very dark hue, it is crucial to ensure sufficient contrast when used as a background or text color. According to WCAG guidelines, a contrast ratio of at least 4.5:1 is recommended for standard text and 3:1 for large text (14pt bold or 18pt regular) to ensure readability for users with low vision or color blindness. When using #08172D, developers should opt for light or bright text colors like white or yellow to meet these contrast requirements. Tools like contrast checkers can help verify compliance. Additionally, avoid using color alone to convey important information, as users with color vision deficiencies may not be able to distinguish it. Instead, supplement color cues with text labels, icons, or patterns to ensure inclusivity.

Shades

Digital Color Formats

RGB
8 23 45
RGB8 23 45
Red
Green
Blue
HSL
215.68deg 69.81% 10.39%
215.6869.8110.39HSL
Hue
Saturation
Lightness
HWB
215.68deg 3.14% 82.35%
215.683.1482.35HWB
Hue
Whiteness
Blackness
hex#08172D
rgb8 23 45
hsl215.68deg 69.81% 10.39%
cmyk82.22% 48.89% 0% 82.35%
hwb215.68deg 3.14% 82.35%
xyz-d650.01 0.01 0.03
oklch0.2052 0.0488 257.86
oklab0.2052 -0.01 -0.05
CMYK
82.22% 48.89% 0% 82.35%
82.2248.89082.35CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2052 0.0488 257.86
0.20520.0488257.86LCH
Lightness
Chroma
Hue
OKLAB
0.2052 -0.01 -0.05
0.2052-0.01-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons