#04071E color
The hex color #04071E is a very dark, moderate blue.
In the RGB color model it is made of 1.6% red, 2.7% green and 11.8% blue (4, 7, 30).
Its hue angle is 233°, with 76% saturation and 7% lightness. For print, the CMYK equivalent is 87% cyan, 77% magenta, 0% yellow and 88% black.
The closest named color is Void (#050D25), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.92:1).
#04071E color codes
| HEX | #04071E | |
|---|---|---|
| RGB | rgb(4, 7, 30) | |
| RGB percent | rgb(1.6%, 2.7%, 11.8%) | |
| HSL | hsl(233, 76%, 7%) | |
| HSV / HSB | hsv(233, 87%, 12%) | |
| CMYK | cmyk(87%, 77%, 0%, 88%) | |
| CIE LAB | lab(2.45, 4.19, -13.44) | |
| CIE LCH | lch(2.45, 14.08, 287.31) | |
| CIE XYZ | xyz(0.36, 0.271, 1.261) | |
| Decimal | 263966 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #04071E, 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 #04071E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.05:1 | Fail | Fail | Fail |
| Sample text | 19.92:1 | Pass | Pass | Pass |
| #04071E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.92:1 | Pass | Pass | Pass |
| Sample text | 1.05: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 #04071E looks to people with the most common types of color vision deficiency.
#000a1fProtanopia
no red cones#00081eDeuteranopia
no green cones#000c11Tritanopia
no blue cones#090909Achromatopsia
no color vision
CSS examples
.background { background-color: #04071e; }
.text { color: #04071e; }
.border { border: 2px solid #04071e; }
.transparent { background-color: rgb(4 7 30 / 50%); }
.gradient { background: linear-gradient(to right, #04071e, #0e041e); }
Similar colors
#050d25Void#111122Corbeau#060929Mysterious Depths#060313Obsidian Shard#151931Dark Knight#041330Squid’s Ink#161e34Sombre Night#080813Narwhal Gray
Closest common color name: Rich Black.
Questions
- What color is #04071E?
- #04071E is a very dark, moderate blue, closest to the named color Void. It belongs to the black family of colors.
- What is the RGB value of #04071E?
- The RGB value is 4, 7, 30: 4 red, 7 green and 30 blue on a 0 to 255 scale.
- What is the complementary color of #04071E?
- The complementary color is #1E1B04, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #04071E?
- White text. Black text has a contrast ratio of 1.05:1 and white text 19.92:1. WCAG asks for at least 4.5:1 for normal text.