#2B222A color
The hex color #2B222A is a very dark, grayish magenta.
In the RGB color model it is made of 16.9% red, 13.3% green and 16.5% blue (43, 34, 42).
Its hue angle is 307°, with 12% saturation and 15% lightness. For print, the CMYK equivalent is 0% cyan, 21% magenta, 2% yellow and 83% black.
The closest named color is Melanzane (#342931), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.39:1).
#2B222A color codes
| HEX | #2B222A | |
|---|---|---|
| RGB | rgb(43, 34, 42) | |
| RGB percent | rgb(16.9%, 13.3%, 16.5%) | |
| HSL | hsl(307, 12%, 15%) | |
| HSV / HSB | hsv(307, 21%, 17%) | |
| CMYK | cmyk(0%, 21%, 2%, 83%) | |
| CIE LAB | lab(14.54, 6.08, -3.71) | |
| CIE LCH | lch(14.54, 7.13, 328.6) | |
| CIE XYZ | xyz(1.986, 1.825, 2.438) | |
| Decimal | 2826794 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #2B222A, 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 #2B222A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.36:1 | Fail | Fail | Fail |
| Sample text | 15.39:1 | Pass | Pass | Pass |
| #2B222A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.39:1 | Pass | Pass | Pass |
| Sample text | 1.36: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 #2B222A looks to people with the most common types of color vision deficiency.
#22242aProtanopia
no red cones#24252aDeuteranopia
no green cones#2c2325Tritanopia
no blue cones#252525Achromatopsia
no color vision
CSS examples
.background { background-color: #2b222a; }
.text { color: #2b222a; }
.border { border: 2px solid #2b222a; }
.transparent { background-color: rgb(43 34 42 / 50%); }
.gradient { background: linear-gradient(to right, #2b222a, #2b2225); }
Similar colors
#342931Melanzane#34282cSmoky Charcoal#352b30Mystical Shadow#252024Ink Black#201b20Night Demons#2c2a35Haiti#27252aDarth Vader#1a161dViolet Void
Closest common color name: Licorice.
Questions
- What color is #2B222A?
- #2B222A is a very dark, grayish magenta, closest to the named color Melanzane. It belongs to the black family of colors.
- What is the RGB value of #2B222A?
- The RGB value is 43, 34, 42: 43 red, 34 green and 42 blue on a 0 to 255 scale.
- What is the complementary color of #2B222A?
- The complementary color is #222B23, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2B222A?
- White text. Black text has a contrast ratio of 1.36:1 and white text 15.39:1. WCAG asks for at least 4.5:1 for normal text.