#040829 color
The hex color #040829 is a very dark, vivid blue.
In the RGB color model it is made of 1.6% red, 3.1% green and 16.1% blue (4, 8, 41).
Its hue angle is 234°, with 82% saturation and 9% lightness. For print, the CMYK equivalent is 90% cyan, 80% magenta, 0% yellow and 84% black.
The closest named color is Mysterious Depths (#060929), a difference of 0.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 19.59:1).
#040829 color codes
| HEX | #040829 | |
|---|---|---|
| RGB | rgb(4, 8, 41) | |
| RGB percent | rgb(1.6%, 3.1%, 16.1%) | |
| HSL | hsl(234, 82%, 9%) | |
| HSV / HSB | hsv(234, 90%, 16%) | |
| CMYK | cmyk(90%, 80%, 0%, 84%) | |
| CIE LAB | lab(3.25, 8, -20.78) | |
| CIE LCH | lch(3.25, 22.26, 291.06) | |
| CIE XYZ | xyz(0.537, 0.36, 2.138) | |
| Decimal | 264233 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #040829, 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 #040829 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.07:1 | Fail | Fail | Fail |
| Sample text | 19.59:1 | Pass | Pass | Pass |
| #040829 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.59:1 | Pass | Pass | Pass |
| Sample text | 1.07: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 #040829 looks to people with the most common types of color vision deficiency.
#000e2aProtanopia
no red cones#000a28Deuteranopia
no green cones#001117Tritanopia
no blue cones#0c0c0cAchromatopsia
no color vision
CSS examples
.background { background-color: #040829; }
.text { color: #040829; }
.border { border: 2px solid #040829; }
.transparent { background-color: rgb(4 8 41 / 50%); }
.gradient { background: linear-gradient(to right, #040829, #130429); }
Similar colors
#060929Mysterious Depths#041330Squid’s Ink#00022eIllicit Darkness#03012dMidnight#050d25Void#071037Infinite Night#151931Dark Knight#000435Oblivion
Closest common color name: Oxford Blue.
Questions
- What color is #040829?
- #040829 is a very dark, vivid blue, closest to the named color Mysterious Depths. It belongs to the black family of colors.
- What is the RGB value of #040829?
- The RGB value is 4, 8, 41: 4 red, 8 green and 41 blue on a 0 to 255 scale.
- What is the complementary color of #040829?
- The complementary color is #292504, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #040829?
- White text. Black text has a contrast ratio of 1.07:1 and white text 19.59:1. WCAG asks for at least 4.5:1 for normal text.