Midnight

#031A31

General Information about #031A31 (Midnight)

The hexadecimal color code #031A31 represents a dark shade of blue, often referred to as Midnight. In the RGB color model, it is composed of 1.18% red, 10.2% green, and 19.22% blue. This color is primarily used in applications where a dark, subtle hue is desired, often conveying a sense of sophistication, mystery, or depth. It belongs to the blue color family, but its darkness sets it apart, making it suitable for backgrounds, accents, or text colors when paired with lighter shades. Understanding its composition and properties is crucial for designers aiming to create visually appealing and accessible designs. Using this color effectively requires careful consideration of contrast, lighting, and the overall aesthetic goals of a project.

The hex color #031A31, also known as Midnight, presents several accessibility considerations, especially in web design. Its low luminance value (very dark) necessitates careful attention to contrast ratios. According to WCAG guidelines, sufficient contrast between text and background is crucial for readability, particularly for users with visual impairments. For normal text (size 14pt or 18px), a contrast ratio of at least 4.5:1 is recommended, while for large text (size 18pt or 24px bold), a ratio of 3:1 is acceptable. Given its darkness, #031A31 requires very light text colors to meet these standards. Using it for interactive elements like buttons or links means ensuring clear visual cues beyond color alone, such as underlines or borders, to aid users who may have difficulty distinguishing colors. Thorough testing with accessibility tools is advised to validate compliance and optimize user experience.

Shades

Digital Color Formats

RGB
3 26 49
RGB3 26 49
Red
Green
Blue
HSL
210deg 88.46% 10.2%
21088.4610.2HSL
Hue
Saturation
Lightness
HWB
210deg 1.18% 80.78%
2101.1880.78HWB
Hue
Whiteness
Blackness
hex#031A31
rgb3 26 49
hsl210deg 88.46% 10.2%
cmyk93.88% 46.94% 0% 80.78%
hwb210deg 1.18% 80.78%
xyz-d650.01 0.01 0.03
oklch0.214 0.0543 250.45
oklab0.214 -0.02 -0.05
CMYK
93.88% 46.94% 0% 80.78%
93.8846.94080.78CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.214 0.0543 250.45
0.2140.0543250.45LCH
Lightness
Chroma
Hue
OKLAB
0.214 -0.02 -0.05
0.214-0.02-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons