Midnight

#051230

General Information about Midnight (#051230)

The hexadecimal color #051230, commonly known as Midnight, is a very dark shade of blue. It is composed of 2% red, 7.1% green, and 18.8% blue. In the RGB color space, it is represented as rgb(5, 18, 48). This color is frequently used in contexts where a sense of depth, sophistication, and mystery is desired. Due to its low luminance, it is considered a very dark color, almost nearing black. The human eye perceives it as a dark, muted shade, making it suitable for backgrounds or accent colors where the focus is on other elements. The color's subtle blue undertones distinguish it from pure black, adding a touch of complexity and elegance.

The hex color #051230, often referred to as Midnight, presents significant accessibility challenges, particularly for text-based content. Due to its extremely dark nature, using it as a background color necessitates very light text colors to ensure sufficient contrast. A contrast ratio of at least 4.5:1 is recommended for normal-sized text and 3:1 for large text to meet WCAG (Web Content Accessibility Guidelines) AA standards. Insufficient contrast can make content difficult or impossible to read for users with visual impairments, including those with low vision or color blindness. Therefore, careful consideration and testing with accessibility tools are essential to ensure readability and inclusivity when employing this color in digital interfaces. Providing alternative color schemes or user-adjustable color settings can further enhance accessibility.

Shades

Digital Color Formats

RGB
5 18 48
RGB5 18 48
Red
Green
Blue
HSL
221.86deg 81.13% 10.39%
221.8681.1310.39HSL
Hue
Saturation
Lightness
HWB
221.86deg 1.96% 81.18%
221.861.9681.18HWB
Hue
Whiteness
Blackness
hex#051230
rgb5 18 48
hsl221.86deg 81.13% 10.39%
cmyk89.58% 62.5% 0% 81.18%
hwb221.86deg 1.96% 81.18%
xyz-d650.01 0.01 0.03
oklch0.1919 0.0631 263
oklab0.1919 -0.01 -0.06
CMYK
89.58% 62.5% 0% 81.18%
89.5862.5081.18CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1919 0.0631 263
0.19190.0631263LCH
Lightness
Chroma
Hue
OKLAB
0.1919 -0.01 -0.06
0.1919-0.01-0.06LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons