#30171B color
The hex color #30171B is a very dark, desaturated red.
In the RGB color model it is made of 18.8% red, 9% green and 10.6% blue (48, 23, 27).
Its hue angle is 350°, with 35% saturation and 14% lightness. For print, the CMYK equivalent is 0% cyan, 52% magenta, 44% yellow and 81% black.
The closest named color is Black Cherry (#2C1620), a difference of 3.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 16.61:1).
#30171B color codes
| HEX | #30171B | |
|---|---|---|
| RGB | rgb(48, 23, 27) | |
| RGB percent | rgb(18.8%, 9%, 10.6%) | |
| HSL | hsl(350, 35%, 14%) | |
| HSV / HSB | hsv(350, 52%, 19%) | |
| CMYK | cmyk(0%, 52%, 44%, 81%) | |
| CIE LAB | lab(11.42, 13.17, 2.75) | |
| CIE LCH | lch(11.42, 13.46, 11.81) | |
| CIE XYZ | xyz(1.723, 1.32, 1.201) | |
| Decimal | 3151643 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #30171B, 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 #30171B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.26:1 | Fail | Fail | Fail |
| Sample text | 16.61:1 | Pass | Pass | Pass |
| #30171B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.61:1 | Pass | Pass | Pass |
| Sample text | 1.26: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 #30171B looks to people with the most common types of color vision deficiency.
#1b1b1bProtanopia
no red cones#22201aDeuteranopia
no green cones#341518Tritanopia
no blue cones#1e1e1eAchromatopsia
no color vision
CSS examples
.background { background-color: #30171b; }
.text { color: #30171b; }
.border { border: 2px solid #30171b; }
.transparent { background-color: rgb(48 23 27 / 50%); }
.gradient { background: linear-gradient(to right, #30171b, #301f17); }
Similar colors
#2c1620Black Cherry#3b1921Bruised Plum#221111Italian Roast#372528Aubergine#3e1825Black-Hearted#3c1421Chocolate Kiss#1d0200Dwarf Fortress#44232fCastro
Closest common color name: Licorice.
Questions
- What color is #30171B?
- #30171B is a very dark, desaturated red, closest to the named color Black Cherry. It belongs to the black family of colors.
- What is the RGB value of #30171B?
- The RGB value is 48, 23, 27: 48 red, 23 green and 27 blue on a 0 to 255 scale.
- What is the complementary color of #30171B?
- The complementary color is #17302C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #30171B?
- White text. Black text has a contrast ratio of 1.26:1 and white text 16.61:1. WCAG asks for at least 4.5:1 for normal text.