Midnight

#02152D

General Information about #02152D

The hexadecimal color code #02152D, also known as Midnight, is a dark shade of blue. In the RGB color model, it is composed of 0.78% red, 8.24% green, and 17.65% blue. This color is often associated with sophistication, depth, and tranquility. Midnight blue is frequently used in designs where a sense of seriousness and reliability is desired. Due to its low lightness value, it is best paired with lighter colors to ensure readability and visual clarity. The color is a good choice for backgrounds, text elements, or other graphic components where a strong, calming presence is needed. It's a versatile color that can be used in various design applications, from web design to branding materials, offering a sense of understated elegance.

The hex color #02152D, also known as Midnight, presents some accessibility challenges, particularly for text and interactive elements. Due to its very dark nature, it offers low contrast against typical light backgrounds. Web developers should ensure that any text displayed using this color has a high contrast ratio (at least 4.5:1 for normal text and 3:1 for large text) when paired with a background color, as specified by WCAG guidelines. Using lighter colors like white, light gray, or shades of yellow or green for text on a #02152D background will improve readability. Additionally, consider providing alternative color schemes to accommodate users with visual impairments or color blindness. Sufficient contrast is essential for users to perceive and interact with content effectively. For interactive elements such as buttons or links, ensure that there are clear visual cues and sufficient contrast to indicate their interactive state. Using tools that measure color contrast ratios can help developers ensure compliance with accessibility standards.

Shades

Digital Color Formats

RGB
2 21 45
RGB2 21 45
Red
Green
Blue
HSL
213.49deg 91.49% 9.22%
213.4991.499.22HSL
Hue
Saturation
Lightness
HWB
213.49deg 0.78% 82.35%
213.490.7882.35HWB
Hue
Whiteness
Blackness
hex#02152D
rgb2 21 45
hsl213.49deg 91.49% 9.22%
cmyk95.56% 53.33% 0% 82.35%
hwb213.49deg 0.78% 82.35%
xyz-d650.01 0.01 0.03
oklch0.1954 0.0554 253.81
oklab0.1954 -0.02 -0.05
CMYK
95.56% 53.33% 0% 82.35%
95.5653.33082.35CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1954 0.0554 253.81
0.19540.0554253.81LCH
Lightness
Chroma
Hue
OKLAB
0.1954 -0.02 -0.05
0.1954-0.02-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons