Midnight

#051B2E

General Information about #051B2E

The hexadecimal color code #051B2E represents a very dark shade of blue, often referred to as "Midnight." It is composed of 2% red, 11% green, and 18% blue. In the RGB color model, it is defined by the values R:5, G:27, B:46. In the CMYK color model, it consists of 89% cyan, 41% magenta, 0% yellow, and 82% black. This color is often associated with calmness, depth, and mystery. Due to its darkness, it is generally used as a background color or an accent color when combined with lighter hues. It belongs to the blue color family, known for its soothing and intellectual qualities. The color evokes a sense of the night sky and can be seen as sophisticated and elegant. In web design, care must be taken to ensure sufficient contrast with text and other elements to maintain accessibility standards.

The color #051B2E, also known as Midnight, presents significant accessibility challenges, especially when used as text or background. Its very low luminance (darkness) results in extremely poor contrast against typical light backgrounds, failing WCAG (Web Content Accessibility Guidelines) standards for text legibility. Using this color for text on a white background, for example, would make it nearly impossible for users with visual impairments to read. To improve accessibility, it is crucial to pair this color with much lighter shades to achieve a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Careful consideration should also be given to link colors if used within text of this color. Ensuring sufficient contrast is not only beneficial for users with disabilities but also enhances the overall user experience for everyone. This includes users in brightly lit environments or those viewing the content on low-quality screens. Tools like contrast checkers can help verify compliance with accessibility standards.

Shades

Digital Color Formats

RGB
5 27 46
RGB5 27 46
Red
Green
Blue
HSL
207.8deg 80.39% 10%
207.880.3910HSL
Hue
Saturation
Lightness
HWB
207.8deg 1.96% 81.96%
207.81.9681.96HWB
Hue
Whiteness
Blackness
hex#051B2E
rgb5 27 46
hsl207.8deg 80.39% 10%
cmyk89.13% 41.3% 0% 81.96%
hwb207.8deg 1.96% 81.96%
xyz-d650.01 0.01 0.03
oklch0.2158 0.047 247.31
oklab0.2158 -0.02 -0.04
CMYK
89.13% 41.3% 0% 81.96%
89.1341.3081.96CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2158 0.047 247.31
0.21580.047247.31LCH
Lightness
Chroma
Hue
OKLAB
0.2158 -0.02 -0.04
0.2158-0.02-0.04LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons