#22021F color
The hex color #22021F is a very dark, vivid magenta.
In the RGB color model it is made of 13.3% red, 0.8% green and 12.2% blue (34, 2, 31).
Its hue angle is 306°, with 89% saturation and 7% lightness. For print, the CMYK equivalent is 0% cyan, 94% magenta, 9% yellow and 87% black.
The closest named color is Black Sabbath (#220022), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 19.15:1).
#22021F color codes
| HEX | #22021F | |
|---|---|---|
| RGB | rgb(34, 2, 31) | |
| RGB percent | rgb(13.3%, 0.8%, 12.2%) | |
| HSL | hsl(306, 89%, 7%) | |
| HSV / HSB | hsv(306, 94%, 13%) | |
| CMYK | cmyk(0%, 94%, 9%, 87%) | |
| CIE LAB | lab(4.36, 19.14, -11.08) | |
| CIE LCH | lch(4.36, 22.12, 329.94) | |
| CIE XYZ | xyz(0.929, 0.483, 1.34) | |
| Decimal | 2228767 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #22021F, 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 #22021F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.1:1 | Fail | Fail | Fail |
| Sample text | 19.15:1 | Pass | Pass | Pass |
| #22021F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.15:1 | Pass | Pass | Pass |
| Sample text | 1.1: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 #22021F looks to people with the most common types of color vision deficiency.
#010c20Protanopia
no red cones#0b111eDeuteranopia
no green cones#24040fTritanopia
no blue cones#0f0f0fAchromatopsia
no color vision
CSS examples
.background { background-color: #22021f; }
.text { color: #22021f; }
.border { border: 2px solid #22021f; }
.transparent { background-color: rgb(34 2 31 / 50%); }
.gradient { background: linear-gradient(to right, #22021f, #22020f); }
Similar colors
#220022Black Sabbath#2b0f2eDark Prom Queen#220011Belladonna#301934Dark Purple#330022Vienna Roast#391531Nightly Voyager#1d0d1dShot in the Dark#1c0f33Midnight Monarch
Questions
- What color is #22021F?
- #22021F is a very dark, vivid magenta, closest to the named color Black Sabbath. It belongs to the black family of colors.
- What is the RGB value of #22021F?
- The RGB value is 34, 2, 31: 34 red, 2 green and 31 blue on a 0 to 255 scale.
- What is the complementary color of #22021F?
- The complementary color is #022205, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #22021F?
- White text. Black text has a contrast ratio of 1.1:1 and white text 19.15:1. WCAG asks for at least 4.5:1 for normal text.