#172818 color
The hex color #172818 is a very dark, desaturated green.
In the RGB color model it is made of 9% red, 15.7% green and 9.4% blue (23, 40, 24).
Its hue angle is 124°, with 27% saturation and 12% lightness. For print, the CMYK equivalent is 42% cyan, 0% magenta, 40% yellow and 84% black.
The closest named color is Nightmare (#112211), a difference of 1.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.52:1).
#172818 color codes
| HEX | #172818 | |
|---|---|---|
| RGB | rgb(23, 40, 24) | |
| RGB percent | rgb(9%, 15.7%, 9.4%) | |
| HSL | hsl(124, 27%, 12%) | |
| HSV / HSB | hsv(124, 43%, 16%) | |
| CMYK | cmyk(42%, 0%, 40%, 84%) | |
| CIE LAB | lab(14.21, -11.33, 8.36) | |
| CIE LCH | lch(14.21, 14.08, 143.59) | |
| CIE XYZ | xyz(1.277, 1.766, 1.137) | |
| Decimal | 1517592 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #172818, 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 #172818 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.35:1 | Fail | Fail | Fail |
| Sample text | 15.52:1 | Pass | Pass | Pass |
| #172818 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.52:1 | Pass | Pass | Pass |
| Sample text | 1.35: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 #172818 looks to people with the most common types of color vision deficiency.
#292517Protanopia
no red cones#262319Deuteranopia
no green cones#152724Tritanopia
no blue cones#242424Achromatopsia
no color vision
CSS examples
.background { background-color: #172818; }
.text { color: #172818; }
.border { border: 2px solid #172818; }
.transparent { background-color: rgb(23 40 24 / 50%); }
.gradient { background: linear-gradient(to right, #172818, #172820); }
Similar colors
#112211Nightmare#17240bMidnight Pines#172808Lindworm Green#162825Swamp Thing#223311Darkest Forest#1e231cUnderworld#003322Pitch-Black Forests#113311Dark Serpent
Closest common color name: Onyx.
Questions
- What color is #172818?
- #172818 is a very dark, desaturated green, closest to the named color Nightmare. It belongs to the green family of colors.
- What is the RGB value of #172818?
- The RGB value is 23, 40, 24: 23 red, 40 green and 24 blue on a 0 to 255 scale.
- What is the complementary color of #172818?
- The complementary color is #281727, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #172818?
- White text. Black text has a contrast ratio of 1.35:1 and white text 15.52:1. WCAG asks for at least 4.5:1 for normal text.