Midnight

#05112F

General Information about Midnight (#05112F)

The hexadecimal color code #05112F, often referred to as Midnight, represents a very dark shade of blue. In the RGB color model, it is composed of 2% red, 7% green, and 18% blue. This color is characterized by its low saturation and luminance, making it appear almost black. The color is often associated with feelings of tranquility, mystery, and sophistication. In terms of color theory, Midnight can be used to create a sense of depth and contrast when paired with lighter colors. It's commonly used in designs aiming for a sleek, modern aesthetic, and it's important to carefully consider the lighting to prevent the color from appearing too flat or dull. The color is part of the blue color family.

The hex color #05112F, also known as Midnight, presents significant accessibility challenges due to its very dark hue. When used as a background color, it requires extremely light text to ensure sufficient contrast for readability. According to WCAG guidelines, the contrast ratio between the text and background should be at least 4.5:1 for normal text and 3:1 for large text to meet AA compliance. Given the darkness of #05112F, achieving this contrast ratio necessitates using nearly white text. It is crucial to test color combinations using accessibility tools to verify compliance and ensure that users with visual impairments can comfortably read the content. Failure to do so can exclude a significant portion of users and render the design inaccessible. Consider offering alternative high-contrast themes for users who need them.

Shades

Digital Color Formats

RGB
5 17 47
RGB5 17 47
Red
Green
Blue
HSL
222.86deg 80.77% 10.2%
222.8680.7710.2HSL
Hue
Saturation
Lightness
HWB
222.86deg 1.96% 81.57%
222.861.9681.57HWB
Hue
Whiteness
Blackness
hex#05112F
rgb5 17 47
hsl222.86deg 80.77% 10.2%
cmyk89.36% 63.83% 0% 81.57%
hwb222.86deg 1.96% 81.57%
xyz-d650.01 0.01 0.03
oklch0.1883 0.063 263.76
oklab0.1883 -0.01 -0.06
CMYK
89.36% 63.83% 0% 81.57%
89.3663.83081.57CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1883 0.063 263.76
0.18830.063263.76LCH
Lightness
Chroma
Hue
OKLAB
0.1883 -0.01 -0.06
0.1883-0.01-0.06LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons