#04021B color
The hex color #04021B is a very dark, vivid blue.
In the RGB color model it is made of 1.6% red, 0.8% green and 10.6% blue (4, 2, 27).
Its hue angle is 245°, with 86% saturation and 6% lightness. For print, the CMYK equivalent is 85% cyan, 93% magenta, 0% yellow and 89% black.
The closest named color is Corbeau (#111122), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 20.39:1).
#04021B color codes
| HEX | #04021B | |
|---|---|---|
| RGB | rgb(4, 2, 27) | |
| RGB percent | rgb(1.6%, 0.8%, 10.6%) | |
| HSL | hsl(245, 86%, 6%) | |
| HSV / HSB | hsv(245, 93%, 11%) | |
| CMYK | cmyk(85%, 93%, 0%, 89%) | |
| CIE LAB | lab(1.34, 5.27, -12.69) | |
| CIE LCH | lch(1.34, 13.74, 292.54) | |
| CIE XYZ | xyz(0.27, 0.148, 1.051) | |
| Decimal | 262683 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #04021B, 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 #04021B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.03:1 | Fail | Fail | Fail |
| Sample text | 20.39:1 | Pass | Pass | Pass |
| #04021B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 20.39: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 #04021B looks to people with the most common types of color vision deficiency.
#00061cProtanopia
no red cones#00041aDeuteranopia
no green cones#00070cTritanopia
no blue cones#050505Achromatopsia
no color vision
CSS examples
.background { background-color: #04021b; }
.text { color: #04021b; }
.border { border: 2px solid #04021b; }
.transparent { background-color: rgb(4 2 27 / 50%); }
.gradient { background: linear-gradient(to right, #04021b, #10021b); }
Similar colors
#111122Corbeau#050d25Void#060313Obsidian Shard#060929Mysterious Depths#151931Dark Knight#041330Squid’s Ink#080813Narwhal Gray#16141cBack in Black
Closest common color name: Midnight Black.
Questions
- What color is #04021B?
- #04021B is a very dark, vivid blue, closest to the named color Corbeau. It belongs to the black family of colors.
- What is the RGB value of #04021B?
- The RGB value is 4, 2, 27: 4 red, 2 green and 27 blue on a 0 to 255 scale.
- What is the complementary color of #04021B?
- The complementary color is #191B02, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #04021B?
- White text. Black text has a contrast ratio of 1.03:1 and white text 20.39:1. WCAG asks for at least 4.5:1 for normal text.