#040712 color
The hex color #040712 is a very dark, moderate blue.
In the RGB color model it is made of 1.6% red, 2.7% green and 7.1% blue (4, 7, 18).
Its hue angle is 227°, with 64% saturation and 4% lightness. For print, the CMYK equivalent is 78% cyan, 61% magenta, 0% yellow and 93% black.
The closest named color is Dark Rift (#060B14), a difference of 1.1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 20.11:1).
#040712 color codes
| HEX | #040712 | |
|---|---|---|
| RGB | rgb(4, 7, 18) | |
| RGB percent | rgb(1.6%, 2.7%, 7.1%) | |
| HSL | hsl(227, 64%, 4%) | |
| HSV / HSB | hsv(227, 78%, 7%) | |
| CMYK | cmyk(78%, 61%, 0%, 93%) | |
| CIE LAB | lab(2, 1.01, -5.17) | |
| CIE LCH | lch(2, 5.27, 281.09) | |
| CIE XYZ | xyz(0.235, 0.221, 0.602) | |
| Decimal | 263954 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #040712, 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 #040712 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.04:1 | Fail | Fail | Fail |
| Sample text | 20.11:1 | Pass | Pass | Pass |
| #040712 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 20.11:1 | Pass | Pass | Pass |
| Sample text | 1.04: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 #040712 looks to people with the most common types of color vision deficiency.
#040812Protanopia
no red cones#030712Deuteranopia
no green cones#01090bTritanopia
no blue cones#070707Achromatopsia
no color vision
CSS examples
.background { background-color: #040712; }
.text { color: #040712; }
.border { border: 2px solid #040712; }
.transparent { background-color: rgb(4 7 18 / 50%); }
.gradient { background: linear-gradient(to right, #040712, #080412); }
Similar colors
#060b14Dark Rift#0b0c14Midnight Oil#080813Narwhal Gray#0c121bMidnight Edition#03050aEight Ball#0b0c10Midnight Black#010b13Rich Black#010b13Black Knight
Questions
- What color is #040712?
- #040712 is a very dark, moderate blue, closest to the named color Dark Rift. It belongs to the black family of colors.
- What is the RGB value of #040712?
- The RGB value is 4, 7, 18: 4 red, 7 green and 18 blue on a 0 to 255 scale.
- What is the complementary color of #040712?
- The complementary color is #120F04, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #040712?
- White text. Black text has a contrast ratio of 1.04:1 and white text 20.11:1. WCAG asks for at least 4.5:1 for normal text.