Midnight

#040F2F

General Information about #040F2F

The hex color #040F2F, often referred to as Midnight, is a very dark shade of blue, almost black. It is composed of 1.57% red, 5.88% green, and 18.43% blue. In the RGB color model, it's represented as (4, 15, 47). This color typically conveys feelings of sophistication, depth, and mystery. It is commonly used in designs aiming to evoke a sense of elegance and professionalism. In terms of color theory, #040F2F belongs to the cool color family due to its dominant blue component. This makes it suitable for creating calm and serene atmospheres. Web developers and designers often use this color as a background to set a professional stage for the content, while it can also be used to highlight important text and elements when adequate contrast is ensured.

The hex color #040F2F, also known as Midnight, presents specific accessibility considerations for web development. Its very dark hue results in a low contrast ratio when paired with many lighter colors, which can pose challenges for users with visual impairments. According to WCAG guidelines, sufficient contrast is crucial for readability and usability. To ensure accessibility, it's recommended to use #040F2F with very light colors such as whites or very pale yellows to meet the minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text. Careful consideration should also be given to interactive elements like buttons and links, ensuring they are clearly distinguishable. Testing with accessibility evaluation tools and user feedback is vital to validate the color combination choices. Proper use of ARIA attributes can further enhance the accessibility of elements using this color. Additionally, providing alternative styling options for users to customize the color scheme can significantly improve the overall user experience for individuals with diverse visual needs.

Shades

Digital Color Formats

RGB
4 15 47
RGB4 15 47
Red
Green
Blue
HSL
224.65deg 84.31% 10%
224.6584.3110HSL
Hue
Saturation
Lightness
HWB
224.65deg 1.57% 81.57%
224.651.5781.57HWB
Hue
Whiteness
Blackness
hex#040F2F
rgb4 15 47
hsl224.65deg 84.31% 10%
cmyk91.49% 68.09% 0% 81.57%
hwb224.65deg 1.57% 81.57%
xyz-d650.01 0.01 0.03
oklch0.1823 0.0667 264.4
oklab0.1823 -0.01 -0.07
CMYK
91.49% 68.09% 0% 81.57%
91.4968.09081.57CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.1823 0.0667 264.4
0.18230.0667264.4LCH
Lightness
Chroma
Hue
OKLAB
0.1823 -0.01 -0.07
0.1823-0.01-0.07LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons