Midnight

#050C2F

General Information about #050c2f

#050c2f, known as Midnight, is a very dark shade of blue. It belongs to the blue color family and is characterized by its low lightness value, resulting in a deep, almost black appearance. This color is often associated with sophistication, mystery, and tranquility. In the RGB color model, #050c2f is composed of 2% red, 4.7% green, and 18.4% blue. The combination of these low values leads to its dark hue. Midnight can be seen as a refined and elegant color choice, often used to convey a sense of formality or depth. Due to its darkness, it's crucial to use it carefully in design, considering contrast and accessibility to ensure readability and visual clarity. It is a popular selection for backgrounds, particularly when coupled with light elements or typography.

The hex color #050c2f, also known as Midnight, presents significant accessibility challenges. Its very low lightness value (dark shade) results in extremely poor contrast against standard white backgrounds. This lack of contrast makes it difficult for users with visual impairments to discern text or important interface elements. Web developers should avoid using #050c2f for primary text or interactive components unless paired with a very light color for sufficient contrast. A contrast ratio of at least 4.5:1 is recommended for normal text and 3:1 for large text to meet WCAG (Web Content Accessibility Guidelines) standards. Tools like contrast checkers can help ensure compliance. Also, consider users with color blindness who might not perceive the subtle hue differences, further emphasizing the need for strong contrast based on luminance rather than solely on color differences. Providing alternative high-contrast themes is also a recommended practice.

Shades

Digital Color Formats

RGB
5 12 47
RGB5 12 47
Red
Green
Blue
HSL
230deg 80.77% 10.2%
23080.7710.2HSL
Hue
Saturation
Lightness
HWB
230deg 1.96% 81.57%
2301.9681.57HWB
Hue
Whiteness
Blackness
hex#050C2F
rgb5 12 47
hsl230deg 80.77% 10.2%
cmyk89.36% 74.47% 0% 81.57%
hwb230deg 1.96% 81.57%
xyz-d650.01 0.01 0.03
oklch0.1757 0.0708 268.13
oklab0.1757 0 -0.07
CMYK
89.36% 74.47% 0% 81.57%
89.3674.47081.57CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1757 0.0708 268.13
0.17570.0708268.13LCH
Lightness
Chroma
Hue
OKLAB
0.1757 0 -0.07
0.17570-0.07LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons