#222917 color
The hex color #222917 is a very dark, desaturated yellow-green.
In the RGB color model it is made of 13.3% red, 16.1% green and 9% blue (34, 41, 23).
Its hue angle is 83°, with 28% saturation and 13% lightness. For print, the CMYK equivalent is 17% cyan, 0% magenta, 44% yellow and 84% black.
The closest named color is Midnight Pines (#17240B), a difference of 4.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.03:1).
#222917 color codes
| HEX | #222917 | |
|---|---|---|
| RGB | rgb(34, 41, 23) | |
| RGB percent | rgb(13.3%, 16.1%, 9%) | |
| HSL | hsl(83, 28%, 13%) | |
| HSV / HSB | hsv(83, 44%, 16%) | |
| CMYK | cmyk(17%, 0%, 44%, 84%) | |
| CIE LAB | lab(15.42, -7.11, 10.82) | |
| CIE LCH | lch(15.42, 12.94, 123.3) | |
| CIE XYZ | xyz(1.607, 1.988, 1.109) | |
| Decimal | 2238743 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #222917, 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 #222917 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.4:1 | Fail | Fail | Fail |
| Sample text | 15.03:1 | Pass | Pass | Pass |
| #222917 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.03:1 | Pass | Pass | Pass |
| Sample text | 1.4: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 #222917 looks to people with the most common types of color vision deficiency.
#2b2716Protanopia
no red cones#2a2618Deuteranopia
no green cones#232724Tritanopia
no blue cones#272727Achromatopsia
no color vision
CSS examples
.background { background-color: #222917; }
.text { color: #222917; }
.border { border: 2px solid #222917; }
.transparent { background-color: rgb(34 41 23 / 50%); }
.gradient { background: linear-gradient(to right, #222917, #192917); }
Similar colors
#17240bMidnight Pines#112211Nightmare#1e231cUnderworld#2b2e26Marshland#172808Lindworm Green#223311Darkest Forest#2b322dTerminal Black#091101Memorial Black
Closest common color name: Onyx.
Questions
- What color is #222917?
- #222917 is a very dark, desaturated yellow-green, closest to the named color Midnight Pines. It belongs to the gray family of colors.
- What is the RGB value of #222917?
- The RGB value is 34, 41, 23: 34 red, 41 green and 23 blue on a 0 to 255 scale.
- What is the complementary color of #222917?
- The complementary color is #1E1729, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #222917?
- White text. Black text has a contrast ratio of 1.4:1 and white text 15.03:1. WCAG asks for at least 4.5:1 for normal text.