#152817 color
The hex color #152817 is a very dark, desaturated green.
In the RGB color model it is made of 8.2% red, 15.7% green and 9% blue (21, 40, 23).
Its hue angle is 126°, with 31% saturation and 12% lightness. For print, the CMYK equivalent is 47% cyan, 0% magenta, 42% 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.58:1).
#152817 color codes
| HEX | #152817 | |
|---|---|---|
| RGB | rgb(21, 40, 23) | |
| RGB percent | rgb(8.2%, 15.7%, 9%) | |
| HSL | hsl(126, 31%, 12%) | |
| HSV / HSB | hsv(126, 48%, 16%) | |
| CMYK | cmyk(47%, 0%, 42%, 84%) | |
| CIE LAB | lab(14.05, -12.38, 8.82) | |
| CIE LCH | lch(14.05, 15.2, 144.53) | |
| CIE XYZ | xyz(1.223, 1.739, 1.082) | |
| Decimal | 1386519 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #152817, 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 #152817 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.35:1 | Fail | Fail | Fail |
| Sample text | 15.58:1 | Pass | Pass | Pass |
| #152817 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.58: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 #152817 looks to people with the most common types of color vision deficiency.
#292516Protanopia
no red cones#262318Deuteranopia
no green cones#122724Tritanopia
no blue cones#242424Achromatopsia
no color vision
CSS examples
.background { background-color: #152817; }
.text { color: #152817; }
.border { border: 2px solid #152817; }
.transparent { background-color: rgb(21 40 23 / 50%); }
.gradient { background: linear-gradient(to right, #152817, #152820); }
Similar colors
#112211Nightmare#17240bMidnight Pines#172808Lindworm Green#223311Darkest Forest#003322Pitch-Black Forests#032e0eHaunted Forest#113311Dark Serpent#162825Swamp Thing
Closest common color name: British Racing Green.
Questions
- What color is #152817?
- #152817 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 #152817?
- The RGB value is 21, 40, 23: 21 red, 40 green and 23 blue on a 0 to 255 scale.
- What is the complementary color of #152817?
- The complementary color is #281526, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #152817?
- White text. Black text has a contrast ratio of 1.35:1 and white text 15.58:1. WCAG asks for at least 4.5:1 for normal text.