#040221 color
The hex color #040221 is a very dark, vivid blue.
In the RGB color model it is made of 1.6% red, 0.8% green and 12.9% blue (4, 2, 33).
Its hue angle is 244°, with 89% saturation and 7% lightness. For print, the CMYK equivalent is 88% cyan, 94% magenta, 0% yellow and 87% black.
The closest named color is Mysterious Depths (#060929), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 20.27:1).
#040221 color codes
| HEX | #040221 | |
|---|---|---|
| RGB | rgb(4, 2, 33) | |
| RGB percent | rgb(1.6%, 0.8%, 12.9%) | |
| HSL | hsl(244, 89%, 7%) | |
| HSV / HSB | hsv(244, 94%, 13%) | |
| CMYK | cmyk(88%, 94%, 0%, 87%) | |
| CIE LAB | lab(1.62, 7.21, -17.08) | |
| CIE LCH | lch(1.62, 18.54, 292.89) | |
| CIE XYZ | xyz(0.346, 0.179, 1.455) | |
| Decimal | 262689 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #040221, 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 #040221 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.04:1 | Fail | Fail | Fail |
| Sample text | 20.27:1 | Pass | Pass | Pass |
| #040221 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 20.27: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 #040221 looks to people with the most common types of color vision deficiency.
#000722Protanopia
no red cones#000520Deuteranopia
no green cones#000910Tritanopia
no blue cones#060606Achromatopsia
no color vision
CSS examples
.background { background-color: #040221; }
.text { color: #040221; }
.border { border: 2px solid #040221; }
.transparent { background-color: rgb(4 2 33 / 50%); }
.gradient { background: linear-gradient(to right, #040221, #140221); }
Similar colors
#060929Mysterious Depths#050d25Void#041330Squid’s Ink#111122Corbeau#03012dMidnight#151931Dark Knight#00022eIllicit Darkness#071037Infinite Night
Closest common color name: Oxford Blue.
Questions
- What color is #040221?
- #040221 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 #040221?
- The RGB value is 4, 2, 33: 4 red, 2 green and 33 blue on a 0 to 255 scale.
- What is the complementary color of #040221?
- The complementary color is #1F2102, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #040221?
- White text. Black text has a contrast ratio of 1.04:1 and white text 20.27:1. WCAG asks for at least 4.5:1 for normal text.