#040E1C color

#040E1C rgb(4, 14, 28)
Shades of black

The hex color #040E1C is a very dark, moderate azure.

In the RGB color model it is made of 1.6% red, 5.5% green and 11% blue (4, 14, 28).

Its hue angle is 215°, with 75% saturation and 6% lightness. For print, the CMYK equivalent is 86% cyan, 50% magenta, 0% yellow and 89% black.

The closest named color is Midnight Edition (#0C121B), a difference of 2.4 ΔE, a small difference.

White text is the more readable choice on this background (contrast 19.36:1).

#040E1C color codes

HEX#040E1C
RGBrgb(4, 14, 28)
RGB percentrgb(1.6%, 5.5%, 11%)
HSLhsl(215, 75%, 6%)
HSV / HSBhsv(215, 86%, 11%)
CMYKcmyk(86%, 50%, 0%, 89%)
CIE LABlab(3.83, 0.57, -9.8)
CIE LCHlch(3.83, 9.82, 273.33)
CIE XYZxyz(0.417, 0.424, 1.158)
Decimal265756
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #040E1C, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #040E1CRatioAAAAAAA large
Sample text1.08:1FailFailFail
Sample text19.36:1PassPassPass
#040E1C as text onRatioAAAAAAA large
Sample text19.36:1PassPassPass
Sample text1.08:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #040E1C looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #040e1c; }
.text { color: #040e1c; }
.border { border: 2px solid #040e1c; }
.transparent { background-color: rgb(4 14 28 / 50%); }
.gradient { background: linear-gradient(to right, #040e1c, #06041c); }
Background
Text color
Border

Similar colors

Questions

What color is #040E1C?
#040E1C is a very dark, moderate azure, closest to the named color Midnight Edition. It belongs to the black family of colors.
What is the RGB value of #040E1C?
The RGB value is 4, 14, 28: 4 red, 14 green and 28 blue on a 0 to 255 scale.
What is the complementary color of #040E1C?
The complementary color is #1C1204, found by rotating the hue 180° on the color wheel.
Is black or white text better on #040E1C?
White text. Black text has a contrast ratio of 1.08:1 and white text 19.36:1. WCAG asks for at least 4.5:1 for normal text.