#24271B color
The hex color #24271B is a very dark, grayish yellow-green.
In the RGB color model it is made of 14.1% red, 15.3% green and 10.6% blue (36, 39, 27).
Its hue angle is 75°, with 18% saturation and 13% lightness. For print, the CMYK equivalent is 8% cyan, 0% magenta, 31% yellow and 85% black.
The closest named color is Underworld (#1E231C), a difference of 3.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.21:1).
#24271B color codes
| HEX | #24271B | |
|---|---|---|
| RGB | rgb(36, 39, 27) | |
| RGB percent | rgb(14.1%, 15.3%, 10.6%) | |
| HSL | hsl(75, 18%, 13%) | |
| HSV / HSB | hsv(75, 31%, 15%) | |
| CMYK | cmyk(8%, 0%, 31%, 85%) | |
| CIE LAB | lab(14.98, -4.05, 7.5) | |
| CIE LCH | lch(14.98, 8.53, 118.39) | |
| CIE XYZ | xyz(1.651, 1.905, 1.317) | |
| Decimal | 2369307 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #24271B, 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 #24271B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.38:1 | Fail | Fail | Fail |
| Sample text | 15.21:1 | Pass | Pass | Pass |
| #24271B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.21:1 | Pass | Pass | Pass |
| Sample text | 1.38: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 #24271B looks to people with the most common types of color vision deficiency.
#29261aProtanopia
no red cones#28261bDeuteranopia
no green cones#252624Tritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #24271b; }
.text { color: #24271b; }
.border { border: 2px solid #24271b; }
.transparent { background-color: rgb(36 39 27 / 50%); }
.gradient { background: linear-gradient(to right, #24271b, #1e271b); }
Similar colors
#1e231cUnderworld#2b2e26Marshland#262926Bitter Liquorice#2b322dTerminal Black#313330Oil#091101Memorial Black#191916Twilight Zone#1c1c1aCoco’s Black
Closest common color name: Onyx.
Questions
- What color is #24271B?
- #24271B is a very dark, grayish yellow-green, closest to the named color Underworld. It belongs to the black family of colors.
- What is the RGB value of #24271B?
- The RGB value is 36, 39, 27: 36 red, 39 green and 27 blue on a 0 to 255 scale.
- What is the complementary color of #24271B?
- The complementary color is #1E1B27, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #24271B?
- White text. Black text has a contrast ratio of 1.38:1 and white text 15.21:1. WCAG asks for at least 4.5:1 for normal text.