#040D1C color
The hex color #040D1C is a very dark, moderate azure.
In the RGB color model it is made of 1.6% red, 5.1% green and 11% blue (4, 13, 28).
Its hue angle is 218°, with 75% saturation and 6% lightness. For print, the CMYK equivalent is 86% cyan, 54% magenta, 0% yellow and 89% black.
The closest named color is Midnight Edition (#0C121B), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.45:1).
#040D1C color codes
| HEX | #040D1C | |
|---|---|---|
| RGB | rgb(4, 13, 28) | |
| RGB percent | rgb(1.6%, 5.1%, 11%) | |
| HSL | hsl(218, 75%, 6%) | |
| HSV / HSB | hsv(218, 86%, 11%) | |
| CMYK | cmyk(86%, 54%, 0%, 89%) | |
| CIE LAB | lab(3.59, 1.05, -10.15) | |
| CIE LCH | lch(3.59, 10.21, 275.93) | |
| CIE XYZ | xyz(0.404, 0.397, 1.154) | |
| Decimal | 265500 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #040D1C, 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 #040D1C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.08:1 | Fail | Fail | Fail |
| Sample text | 19.45:1 | Pass | Pass | Pass |
| #040D1C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.45:1 | Pass | Pass | Pass |
| Sample text | 1.08: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 #040D1C looks to people with the most common types of color vision deficiency.
#070e1dProtanopia
no red cones#040c1cDeuteranopia
no green cones#001013Tritanopia
no blue cones#0d0d0dAchromatopsia
no color vision
CSS examples
.background { background-color: #040d1c; }
.text { color: #040d1c; }
.border { border: 2px solid #040d1c; }
.transparent { background-color: rgb(4 13 28 / 50%); }
.gradient { background: linear-gradient(to right, #040d1c, #07041c); }
Similar colors
#0c121bMidnight Edition#060b14Dark Rift#080813Narwhal Gray#0b0c14Midnight Oil#060313Obsidian Shard#111122Corbeau#010b13Rich Black#010b13Black Knight
Questions
- What color is #040D1C?
- #040D1C 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 #040D1C?
- The RGB value is 4, 13, 28: 4 red, 13 green and 28 blue on a 0 to 255 scale.
- What is the complementary color of #040D1C?
- The complementary color is #1C1304, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #040D1C?
- White text. Black text has a contrast ratio of 1.08:1 and white text 19.45:1. WCAG asks for at least 4.5:1 for normal text.