#04021F color
The hex color #04021F is a very dark, vivid blue.
In the RGB color model it is made of 1.6% red, 0.8% green and 12.2% blue (4, 2, 31).
Its hue angle is 244°, with 88% saturation and 6% lightness. For print, the CMYK equivalent is 87% cyan, 94% magenta, 0% yellow and 88% black.
The closest named color is Mysterious Depths (#060929), a difference of 3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 20.32:1).
#04021F color codes
| HEX | #04021F | |
|---|---|---|
| RGB | rgb(4, 2, 31) | |
| RGB percent | rgb(1.6%, 0.8%, 12.2%) | |
| HSL | hsl(244, 88%, 6%) | |
| HSV / HSB | hsv(244, 94%, 12%) | |
| CMYK | cmyk(87%, 94%, 0%, 88%) | |
| CIE LAB | lab(1.52, 6.52, -15.64) | |
| CIE LCH | lch(1.52, 16.95, 292.63) | |
| CIE XYZ | xyz(0.319, 0.168, 1.312) | |
| Decimal | 262687 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #04021F, 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 #04021F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.03:1 | Fail | Fail | Fail |
| Sample text | 20.32:1 | Pass | Pass | Pass |
| #04021F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 20.32:1 | Pass | Pass | Pass |
| Sample text | 1.03:1 | Fail | Fail | Fail |
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 #04021F looks to people with the most common types of color vision deficiency.
#000720Protanopia
no red cones#00051eDeuteranopia
no green cones#00080fTritanopia
no blue cones#060606Achromatopsia
no color vision
CSS examples
.background { background-color: #04021f; }
.text { color: #04021f; }
.border { border: 2px solid #04021f; }
.transparent { background-color: rgb(4 2 31 / 50%); }
.gradient { background: linear-gradient(to right, #04021f, #13021f); }
Similar colors
#060929Mysterious Depths#050d25Void#111122Corbeau#041330Squid’s Ink#151931Dark Knight#03012dMidnight#00022eIllicit Darkness#060313Obsidian Shard
Closest common color name: Oxford Blue.
Questions
- What color is #04021F?
- #04021F is a very dark, vivid blue, closest to the named color Mysterious Depths. It belongs to the black family of colors.
- What is the RGB value of #04021F?
- The RGB value is 4, 2, 31: 4 red, 2 green and 31 blue on a 0 to 255 scale.
- What is the complementary color of #04021F?
- The complementary color is #1D1F02, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #04021F?
- White text. Black text has a contrast ratio of 1.03:1 and white text 20.32:1. WCAG asks for at least 4.5:1 for normal text.