Midnight

#040E30

General Information about #040E30

The hexadecimal color code #040E30, also known as Midnight, is a very dark shade of blue-purple, almost black. In the RGB color model, it is composed of 1.57% red, 5.49% green, and 18.82% blue. In the CMYK color model, it consists of 92% cyan, 71% magenta, 0% yellow, and 81% black. This color is often associated with feelings of calm, serenity, and sophistication, but its darkness can also evoke a sense of mystery or melancholy. Due to its low luminance, it should be used carefully in design to ensure readability and accessibility. The color is named 'Midnight' because of its resemblance to the dark, inky color of the night sky at midnight. It is often used to represent things that are dark or hidden.

The hex color #040E30, also known as Midnight, presents significant accessibility challenges due to its very dark nature. Its low luminance results in poor contrast against most common background colors, including white. This makes it difficult for users with visual impairments, such as low vision or color blindness, to distinguish text or graphical elements rendered in this color. Web developers must ensure a high contrast ratio, ideally adhering to WCAG guidelines (at least 4.5:1 for normal text and 3:1 for large text), by pairing it with a very light color. Alternatives include lighter shades of gray, yellow, or light blue. When using #040E30, avoid placing crucial information within the color to prevent exclusion of visually impaired users. Consider offering a high-contrast theme option to allow users to customize the color scheme for optimal readability.

Shades

Digital Color Formats

RGB
4 14 48
RGB4 14 48
Red
Green
Blue
HSL
226.36deg 84.62% 10.2%
226.3684.6210.2HSL
Hue
Saturation
Lightness
HWB
226.36deg 1.57% 81.18%
226.361.5781.18HWB
Hue
Whiteness
Blackness
hex#040E30
rgb4 14 48
hsl226.36deg 84.62% 10.2%
cmyk91.67% 70.83% 0% 81.18%
hwb226.36deg 1.57% 81.18%
xyz-d650.01 0.01 0.03
oklch0.1808 0.0699 265.41
oklab0.1808 -0.01 -0.07
CMYK
91.67% 70.83% 0% 81.18%
91.6770.83081.18CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1808 0.0699 265.41
0.18080.0699265.41LCH
Lightness
Chroma
Hue
OKLAB
0.1808 -0.01 -0.07
0.1808-0.01-0.07LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons