#172212 color
The hex color #172212 is a very dark, desaturated green.
In the RGB color model it is made of 9% red, 13.3% green and 7.1% blue (23, 34, 18).
Its hue angle is 101°, with 31% saturation and 10% lightness. For print, the CMYK equivalent is 32% cyan, 0% magenta, 47% yellow and 87% black.
The closest named color is Nightmare (#112211), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 16.48:1).
#172212 color codes
| HEX | #172212 | |
|---|---|---|
| RGB | rgb(23, 34, 18) | |
| RGB percent | rgb(9%, 13.3%, 7.1%) | |
| HSL | hsl(101, 31%, 10%) | |
| HSV / HSB | hsv(101, 47%, 13%) | |
| CMYK | cmyk(32%, 0%, 47%, 87%) | |
| CIE LAB | lab(11.76, -8.83, 9.08) | |
| CIE LCH | lch(11.76, 12.67, 134.19) | |
| CIE XYZ | xyz(1.035, 1.37, 0.782) | |
| Decimal | 1516050 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #172212, 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 #172212 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.27:1 | Fail | Fail | Fail |
| Sample text | 16.48:1 | Pass | Pass | Pass |
| #172212 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.48:1 | Pass | Pass | Pass |
| Sample text | 1.27: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 #172212 looks to people with the most common types of color vision deficiency.
#232011Protanopia
no red cones#211f13Deuteranopia
no green cones#17211eTritanopia
no blue cones#1f1f1fAchromatopsia
no color vision
CSS examples
.background { background-color: #172212; }
.text { color: #172212; }
.border { border: 2px solid #172212; }
.transparent { background-color: rgb(23 34 18 / 50%); }
.gradient { background: linear-gradient(to right, #172212, #122215); }
Similar colors
#112211Nightmare#17240bMidnight Pines#172808Lindworm Green#1e231cUnderworld#001000Cosmic Bit Flip#091101Memorial Black#020f03Blackn’t#041108Jedi Night
Closest common color name: Onyx.
Questions
- What color is #172212?
- #172212 is a very dark, desaturated green, closest to the named color Nightmare. It belongs to the black family of colors.
- What is the RGB value of #172212?
- The RGB value is 23, 34, 18: 23 red, 34 green and 18 blue on a 0 to 255 scale.
- What is the complementary color of #172212?
- The complementary color is #1D1222, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #172212?
- White text. Black text has a contrast ratio of 1.27:1 and white text 16.48:1. WCAG asks for at least 4.5:1 for normal text.