#28212A color
The hex color #28212A is a very dark, grayish magenta.
In the RGB color model it is made of 15.7% red, 12.9% green and 16.5% blue (40, 33, 42).
Its hue angle is 287°, with 12% saturation and 15% lightness. For print, the CMYK equivalent is 5% cyan, 21% magenta, 0% yellow and 84% black.
The closest named color is Ink Black (#252024), a difference of 3.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.66:1).
#28212A color codes
| HEX | #28212A | |
|---|---|---|
| RGB | rgb(40, 33, 42) | |
| RGB percent | rgb(15.7%, 12.9%, 16.5%) | |
| HSL | hsl(287, 12%, 15%) | |
| HSV / HSB | hsv(287, 21%, 16%) | |
| CMYK | cmyk(5%, 21%, 0%, 84%) | |
| CIE LAB | lab(13.86, 5.46, -4.77) | |
| CIE LCH | lch(13.86, 7.25, 318.89) | |
| CIE XYZ | xyz(1.837, 1.706, 2.423) | |
| Decimal | 2629930 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #28212A, 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 #28212A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.34:1 | Fail | Fail | Fail |
| Sample text | 15.66:1 | Pass | Pass | Pass |
| #28212A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.66:1 | Pass | Pass | Pass |
| Sample text | 1.34: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 #28212A looks to people with the most common types of color vision deficiency.
#20232aProtanopia
no red cones#22242aDeuteranopia
no green cones#282224Tritanopia
no blue cones#232323Achromatopsia
no color vision
CSS examples
.background { background-color: #28212a; }
.text { color: #28212a; }
.border { border: 2px solid #28212a; }
.transparent { background-color: rgb(40 33 42 / 50%); }
.gradient { background: linear-gradient(to right, #28212a, #2a2127); }
Similar colors
#252024Ink Black#201b20Night Demons#342931Melanzane#2c2a35Haiti#27252aDarth Vader#1a161dViolet Void#352b30Mystical Shadow#34282cSmoky Charcoal
Closest common color name: Licorice.
Questions
- What color is #28212A?
- #28212A is a very dark, grayish magenta, closest to the named color Ink Black. It belongs to the black family of colors.
- What is the RGB value of #28212A?
- The RGB value is 40, 33, 42: 40 red, 33 green and 42 blue on a 0 to 255 scale.
- What is the complementary color of #28212A?
- The complementary color is #232A21, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #28212A?
- White text. Black text has a contrast ratio of 1.34:1 and white text 15.66:1. WCAG asks for at least 4.5:1 for normal text.