Midnight

#05152F

General Information About Midnight (#05152F)

The hexadecimal color code #05152F represents a dark shade of blue, often referred to as 'Midnight'. It is composed of 2% red, 8.2% green, and 18.4% blue. In the RGB color model, this equates to R:5, G:21, B:47. The corresponding CMYK values are C:89, M:55, Y:0, K:82. This indicates that the color is predominantly composed of cyan and magenta, with a high level of black. The color is best used sparingly, typically as an accent or background color. It evokes feelings of calmness, sophistication, and mystery. Due to its low luminance, it requires careful consideration regarding contrast and accessibility when used in user interfaces or printed materials.

The hex color #05152F, also known as Midnight, presents significant accessibility challenges due to its very dark nature. Its extremely low luminance makes it unsuitable as a foreground color on a white or light background, as the contrast ratio would be far below the WCAG recommended levels for readability. To ensure accessibility, it's crucial to pair #05152F with very light colors, such as whites, creams, or very pale yellows, to achieve sufficient contrast. Even then, careful consideration should be given to font size and weight, as thinner fonts may become illegible. Avoid using this color for essential text or interactive elements without thorough accessibility testing. For users with low vision or color blindness, the lack of contrast could render content completely invisible or unreadable. Tools like contrast checkers can help evaluate pairings to ensure they meet accessibility standards.

Shades

Digital Color Formats

RGB
5 21 47
RGB5 21 47
Red
Green
Blue
HSL
217.14deg 80.77% 10.2%
217.1480.7710.2HSL
Hue
Saturation
Lightness
HWB
217.14deg 1.96% 81.57%
217.141.9681.57HWB
Hue
Whiteness
Blackness
hex#05152F
rgb5 21 47
hsl217.14deg 80.77% 10.2%
cmyk89.36% 55.32% 0% 81.57%
hwb217.14deg 1.96% 81.57%
xyz-d650.01 0.01 0.03
oklch0.1992 0.0568 258.85
oklab0.1992 -0.01 -0.06
CMYK
89.36% 55.32% 0% 81.57%
89.3655.32081.57CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1992 0.0568 258.85
0.19920.0568258.85LCH
Lightness
Chroma
Hue
OKLAB
0.1992 -0.01 -0.06
0.1992-0.01-0.06LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons