#040A19 color
The hex color #040A19 is a very dark, moderate blue.
In the RGB color model it is made of 1.6% red, 3.9% green and 9.8% blue (4, 10, 25).
Its hue angle is 223°, with 72% saturation and 6% lightness. For print, the CMYK equivalent is 84% cyan, 60% magenta, 0% yellow and 90% black.
The closest named color is Midnight Edition (#0C121B), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.76:1).
#040A19 color codes
| HEX | #040A19 | |
|---|---|---|
| RGB | rgb(4, 10, 25) | |
| RGB percent | rgb(1.6%, 3.9%, 9.8%) | |
| HSL | hsl(223, 72%, 6%) | |
| HSV / HSB | hsv(223, 84%, 10%) | |
| CMYK | cmyk(84%, 60%, 0%, 90%) | |
| CIE LAB | lab(2.83, 1.49, -8.89) | |
| CIE LCH | lch(2.83, 9.01, 279.54) | |
| CIE XYZ | xyz(0.334, 0.313, 0.962) | |
| Decimal | 264729 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #040A19, 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 #040A19 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.06:1 | Fail | Fail | Fail |
| Sample text | 19.76:1 | Pass | Pass | Pass |
| #040A19 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.76:1 | Pass | Pass | Pass |
| Sample text | 1.06: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 #040A19 looks to people with the most common types of color vision deficiency.
#050b1aProtanopia
no red cones#030919Deuteranopia
no green cones#000d10Tritanopia
no blue cones#0a0a0aAchromatopsia
no color vision
CSS examples
.background { background-color: #040a19; }
.text { color: #040a19; }
.border { border: 2px solid #040a19; }
.transparent { background-color: rgb(4 10 25 / 50%); }
.gradient { background: linear-gradient(to right, #040a19, #090419); }
Similar colors
#0c121bMidnight Edition#080813Narwhal Gray#060b14Dark Rift#060313Obsidian Shard#0b0c14Midnight Oil#16161dEigengrau#111122Corbeau#16141cBack in Black
Closest common color name: Rich Black.
Questions
- What color is #040A19?
- #040A19 is a very dark, moderate blue, closest to the named color Midnight Edition. It belongs to the black family of colors.
- What is the RGB value of #040A19?
- The RGB value is 4, 10, 25: 4 red, 10 green and 25 blue on a 0 to 255 scale.
- What is the complementary color of #040A19?
- The complementary color is #191304, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #040A19?
- White text. Black text has a contrast ratio of 1.06:1 and white text 19.76:1. WCAG asks for at least 4.5:1 for normal text.