#222717 color
The hex color #222717 is a very dark, desaturated yellow-green.
In the RGB color model it is made of 13.3% red, 15.3% green and 9% blue (34, 39, 23).
Its hue angle is 79°, with 26% saturation and 12% lightness. For print, the CMYK equivalent is 13% cyan, 0% magenta, 41% yellow and 85% black.
The closest named color is Underworld (#1E231C), a difference of 4.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.32:1).
#222717 color codes
| HEX | #222717 | |
|---|---|---|
| RGB | rgb(34, 39, 23) | |
| RGB percent | rgb(13.3%, 15.3%, 9%) | |
| HSL | hsl(79, 26%, 12%) | |
| HSV / HSB | hsv(79, 41%, 15%) | |
| CMYK | cmyk(13%, 0%, 41%, 85%) | |
| CIE LAB | lab(14.7, -5.79, 9.86) | |
| CIE LCH | lch(14.7, 11.44, 120.44) | |
| CIE XYZ | xyz(1.54, 1.853, 1.087) | |
| Decimal | 2238231 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #222717, 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 #222717 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.37:1 | Fail | Fail | Fail |
| Sample text | 15.32:1 | Pass | Pass | Pass |
| #222717 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.32:1 | Pass | Pass | Pass |
| Sample text | 1.37: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 #222717 looks to people with the most common types of color vision deficiency.
#292516Protanopia
no red cones#282518Deuteranopia
no green cones#232523Tritanopia
no blue cones#252525Achromatopsia
no color vision
CSS examples
.background { background-color: #222717; }
.text { color: #222717; }
.border { border: 2px solid #222717; }
.transparent { background-color: rgb(34 39 23 / 50%); }
.gradient { background: linear-gradient(to right, #222717, #1a2717); }
Similar colors
#1e231cUnderworld#2b2e26Marshland#17240bMidnight Pines#112211Nightmare#2b322dTerminal Black#091101Memorial Black#172808Lindworm Green#262926Bitter Liquorice
Closest common color name: Onyx.
Questions
- What color is #222717?
- #222717 is a very dark, desaturated yellow-green, closest to the named color Underworld. It belongs to the black family of colors.
- What is the RGB value of #222717?
- The RGB value is 34, 39, 23: 34 red, 39 green and 23 blue on a 0 to 255 scale.
- What is the complementary color of #222717?
- The complementary color is #1C1727, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #222717?
- White text. Black text has a contrast ratio of 1.37:1 and white text 15.32:1. WCAG asks for at least 4.5:1 for normal text.