Midnight

#051D2F

General Information about Midnight (#051D2F)

The hex color code #051d2f, also known as Midnight, represents a very dark shade of blue. It is composed of 2% red, 11.4% green, and 19.2% blue. In the RGB color space, it is represented as rgb(5, 29, 47). This color is often associated with sophistication, depth, and mystery. Due to its low brightness, it is generally used as a background color or an accent color, rather than for primary text. In terms of color theory, Midnight belongs to the cool color family, evoking feelings of calmness and tranquility. Its subdued nature makes it a versatile choice for various design applications, from web design to interior decoration. However, care must be taken to ensure adequate contrast with foreground elements to maintain readability and accessibility.

The hex color #051d2f, often referred to as Midnight, presents significant accessibility challenges due to its very dark nature. When used as a background color, it requires extremely light text to ensure sufficient contrast for readability. According to WCAG (Web Content Accessibility Guidelines), the contrast ratio between text and background should be at least 4.5:1 for normal text and 3:1 for large text to meet AA compliance. Given #051d2f's darkness, many standard text colors would fail to meet these ratios. Therefore, it's crucial to meticulously test color combinations using contrast checkers. Additionally, consider that users with visual impairments might struggle even with adequately contrasting text on such a dark background. Providing alternative color schemes and allowing users to adjust contrast settings can greatly improve accessibility. Avoid using this color for critical information or interactive elements without thorough testing and accessible design practices.

Shades

Digital Color Formats

RGB
5 29 47
RGB5 29 47
Red
Green
Blue
HSL
205.71deg 80.77% 10.2%
205.7180.7710.2HSL
Hue
Saturation
Lightness
HWB
205.71deg 1.96% 81.57%
205.711.9681.57HWB
Hue
Whiteness
Blackness
hex#051D2F
rgb5 29 47
hsl205.71deg 80.77% 10.2%
cmyk89.36% 38.3% 0% 81.57%
hwb205.71deg 1.96% 81.57%
xyz-d650.01 0.01 0.03
oklch0.2225 0.0463 244.2
oklab0.2225 -0.02 -0.04
CMYK
89.36% 38.3% 0% 81.57%
89.3638.3081.57CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2225 0.0463 244.2
0.22250.0463244.2LCH
Lightness
Chroma
Hue
OKLAB
0.2225 -0.02 -0.04
0.2225-0.02-0.04LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons