#28222C color
The hex color #28222C is a very dark, grayish violet.
In the RGB color model it is made of 15.7% red, 13.3% green and 17.3% blue (40, 34, 44).
Its hue angle is 276°, with 13% saturation and 15% lightness. For print, the CMYK equivalent is 9% cyan, 23% magenta, 0% yellow and 83% black.
The closest named color is Haiti (#2C2A35), a difference of 3.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.49:1).
#28222C color codes
| HEX | #28222C | |
|---|---|---|
| RGB | rgb(40, 34, 44) | |
| RGB percent | rgb(15.7%, 13.3%, 17.3%) | |
| HSL | hsl(276, 13%, 15%) | |
| HSV / HSB | hsv(276, 23%, 17%) | |
| CMYK | cmyk(9%, 23%, 0%, 83%) | |
| CIE LAB | lab(14.27, 5.26, -5.59) | |
| CIE LCH | lch(14.27, 7.67, 313.27) | |
| CIE XYZ | xyz(1.902, 1.777, 2.625) | |
| Decimal | 2630188 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #28222C, 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 #28222C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.36:1 | Fail | Fail | Fail |
| Sample text | 15.49:1 | Pass | Pass | Pass |
| #28222C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.49: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 #28222C looks to people with the most common types of color vision deficiency.
#21242cProtanopia
no red cones#22242cDeuteranopia
no green cones#282325Tritanopia
no blue cones#242424Achromatopsia
no color vision
CSS examples
.background { background-color: #28222c; }
.text { color: #28222c; }
.border { border: 2px solid #28222c; }
.transparent { background-color: rgb(40 34 44 / 50%); }
.gradient { background: linear-gradient(to right, #28222c, #2c222b); }
Similar colors
#2c2a35Haiti#342931Melanzane#252024Ink Black#201b20Night Demons#27252aDarth Vader#1a161dViolet Void#222233Black Velvet#352b30Mystical Shadow
Closest common color name: Licorice.
Questions
- What color is #28222C?
- #28222C is a very dark, grayish violet, closest to the named color Haiti. It belongs to the black family of colors.
- What is the RGB value of #28222C?
- The RGB value is 40, 34, 44: 40 red, 34 green and 44 blue on a 0 to 255 scale.
- What is the complementary color of #28222C?
- The complementary color is #262C22, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #28222C?
- White text. Black text has a contrast ratio of 1.36:1 and white text 15.49:1. WCAG asks for at least 4.5:1 for normal text.