Midnight

#040B31

General Information about Midnight (#040B31)

The hexadecimal color code #040B31 represents a very dark shade of blue, often referred to as Midnight. In the RGB color model, it is composed of 1.57% red, 4.31% green, and 19.22% blue. This composition results in a deep, muted color that evokes feelings of tranquility, mystery, and sophistication. Midnight is frequently used in design to create a sense of depth, formality, or understated elegance. In a CMYK color model, the color is composed of 92% cyan, 74% magenta, 0% yellow and 81% black. Due to its high black component, it is often used to create a smooth colour transition effect.

The hex color #040B31, known as Midnight, presents significant accessibility challenges due to its extremely dark nature. When used as a background color, it requires very light text to ensure sufficient contrast for readability. According to WCAG guidelines, the contrast ratio between text and background should be at least 4.5:1 for normal text and 3:1 for large text to meet AA compliance. Midnight may struggle to achieve these ratios with many lighter shades, necessitating careful selection of foreground colors. For users with low vision or color blindness, the already limited contrast can be further diminished, making content difficult or impossible to perceive. Web developers should consider using lighter background colors or implementing contrast-enhancing features to improve the accessibility of designs incorporating this dark hue. It's advisable to use contrast checking tools to verify compliance with accessibility standards.

Shades

Digital Color Formats

RGB
4 11 49
RGB4 11 49
Red
Green
Blue
HSL
230.67deg 84.91% 10.39%
230.6784.9110.39HSL
Hue
Saturation
Lightness
HWB
230.67deg 1.57% 80.78%
230.671.5780.78HWB
Hue
Whiteness
Blackness
hex#040B31
rgb4 11 49
hsl230.67deg 84.91% 10.39%
cmyk91.84% 77.55% 0% 80.78%
hwb230.67deg 1.57% 80.78%
xyz-d650.01 0 0.03
oklch0.1748 0.0761 267.47
oklab0.1748 0 -0.08
CMYK
91.84% 77.55% 0% 80.78%
91.8477.55080.78CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0 0.03
0.0100.03XYZ
X
Y
Z
OKLCH
0.1748 0.0761 267.47
0.17480.0761267.47LCH
Lightness
Chroma
Hue
OKLAB
0.1748 0 -0.08
0.17480-0.08LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons