Midnight

#021A36

General Information about #021A36

The hexadecimal color code #021A36 represents a very dark shade of blue, often described as 'Midnight'. In the RGB color model, it is composed of 0.78% red, 10.2% green, and 21.18% blue. This composition results in a color that is perceived as deep, cool, and somewhat mysterious. Hex color codes are widely used in web design, graphic design, and other digital applications to specify precise colors. Understanding the RGB values helps designers to manipulate colors effectively, create color palettes, and ensure consistency across different media. #021A36 evokes feelings of night, depth, and serenity, making it suitable for designs aiming for a sophisticated or calming aesthetic. The low saturation makes the color useful as a background for more dominant elements.

The color #021A36, a very dark shade of blue, presents significant accessibility challenges, especially in text-based applications. Its extremely low luminance results in poor contrast against most background colors, particularly white or light shades. This violates WCAG (Web Content Accessibility Guidelines) standards, specifically regarding contrast ratios. For text to be legible, a contrast ratio of at least 4.5:1 is recommended for normal text and 3:1 for large text. #021A36 often fails to meet these ratios, making content difficult or impossible to read for users with visual impairments. To improve accessibility, it should be paired with very light colors, and the contrast should always be checked using accessibility tools. Avoid using it for critical information or interactive elements without careful consideration of contrast. Alternatives with higher luminance should be considered for better user experience.

Shades

Digital Color Formats

RGB
2 26 54
RGB2 26 54
Red
Green
Blue
HSL
212.31deg 92.86% 10.98%
212.3192.8610.98HSL
Hue
Saturation
Lightness
HWB
212.31deg 0.78% 78.82%
212.310.7878.82HWB
Hue
Whiteness
Blackness
hex#021A36
rgb2 26 54
hsl212.31deg 92.86% 10.98%
cmyk96.3% 51.85% 0% 78.82%
hwb212.31deg 0.78% 78.82%
xyz-d650.01 0.01 0.04
oklch0.2175 0.063 253.52
oklab0.2175 -0.02 -0.06
CMYK
96.3% 51.85% 0% 78.82%
96.351.85078.82CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.04
0.010.010.04XYZ
X
Y
Z
OKLCH
0.2175 0.063 253.52
0.21750.063253.52LCH
Lightness
Chroma
Hue
OKLAB
0.2175 -0.02 -0.06
0.2175-0.02-0.06LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons