Midnight

#08172F

General Information about Midnight (#08172F)

The hexadecimal color code #08172F represents a dark shade of blue, often referred to as Midnight. It is composed of 3.14% red, 9.02% green, and 18.43% blue. In the RGB color space, it has the numerical values (8, 23, 47). This color is commonly perceived as calm, sophisticated, and mysterious. It is often used in designs where a sense of depth, serenity, or formality is desired. Colors similar to #08172F are frequently found in night scenes, underwater environments, or in contexts where a subdued and elegant aesthetic is valued. Its dark nature makes it a suitable background color when paired with light text for contrast.

The hex color #08172F, also known as Midnight, presents some accessibility challenges, primarily due to its dark nature. When used as a background color, it requires very light text (white or near-white) to ensure sufficient contrast for readability. 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 meet AA compliance. Evaluating the contrast ratio of text against this background is crucial. If used for interactive elements, ensure hover, focus, and active states are clearly distinguishable. Avoid using this color for small text or intricate graphics where legibility is paramount. Proper testing with accessibility tools can help identify and address potential issues, ensuring inclusivity for users with visual impairments. Consider providing alternative high-contrast themes.

Shades

Digital Color Formats

RGB
8 23 47
RGB8 23 47
Red
Green
Blue
HSL
216.92deg 70.91% 10.78%
216.9270.9110.78HSL
Hue
Saturation
Lightness
HWB
216.92deg 3.14% 81.57%
216.923.1481.57HWB
Hue
Whiteness
Blackness
hex#08172F
rgb8 23 47
hsl216.92deg 70.91% 10.78%
cmyk82.98% 51.06% 0% 81.57%
hwb216.92deg 3.14% 81.57%
xyz-d650.01 0.01 0.03
oklch0.2067 0.0522 259.29
oklab0.2067 -0.01 -0.05
CMYK
82.98% 51.06% 0% 81.57%
82.9851.06081.57CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2067 0.0522 259.29
0.20670.0522259.29LCH
Lightness
Chroma
Hue
OKLAB
0.2067 -0.01 -0.05
0.2067-0.01-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons