#040F1C color

#040F1C rgb(4, 15, 28)
Shades of black

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

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

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

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

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

#040F1C color codes

HEX#040F1C
RGBrgb(4, 15, 28)
RGB percentrgb(1.6%, 5.9%, 11%)
HSLhsl(213, 75%, 6%)
HSV / HSBhsv(213, 86%, 11%)
CMYKcmyk(86%, 46%, 0%, 89%)
CIE LABlab(4.08, 0.06, -9.43)
CIE LCHlch(4.08, 9.43, 270.38)
CIE XYZxyz(0.43, 0.451, 1.163)
Decimal266012
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #040F1C, 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 #040F1CRatioAAAAAAA large
Sample text1.09:1FailFailFail
Sample text19.26:1PassPassPass
#040F1C as text onRatioAAAAAAA large
Sample text19.26:1PassPassPass
Sample text1.09: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 #040F1C looks to people with the most common types of color vision deficiency.

CSS examples

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

Similar colors

Questions

What color is #040F1C?
#040F1C 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 #040F1C?
The RGB value is 4, 15, 28: 4 red, 15 green and 28 blue on a 0 to 255 scale.
What is the complementary color of #040F1C?
The complementary color is #1C1104, found by rotating the hue 180° on the color wheel.
Is black or white text better on #040F1C?
White text. Black text has a contrast ratio of 1.09:1 and white text 19.26:1. WCAG asks for at least 4.5:1 for normal text.