#31302D color
The hex color #31302D is a dark gray.
In the RGB color model it is made of 19.2% red, 18.8% green and 17.6% blue (49, 48, 45).
Its hue angle is 45°, with 4% saturation and 18% lightness. For print, the CMYK equivalent is 0% cyan, 2% magenta, 8% yellow and 81% black.
The closest named color is Holy Crow (#332F2C), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.2:1).
#31302D color codes
| HEX | #31302D | |
|---|---|---|
| RGB | rgb(49, 48, 45) | |
| RGB percent | rgb(19.2%, 18.8%, 17.6%) | |
| HSL | hsl(45, 4%, 18%) | |
| HSV / HSB | hsv(45, 8%, 19%) | |
| CMYK | cmyk(0%, 2%, 8%, 81%) | |
| CIE LAB | lab(19.87, -0.23, 2.08) | |
| CIE LCH | lch(19.87, 2.09, 96.44) | |
| CIE XYZ | xyz(2.797, 2.956, 2.905) | |
| Decimal | 3223597 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31302D, 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 #31302D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.59:1 | Fail | Fail | Fail |
| Sample text | 13.2:1 | Pass | Pass | Pass |
| #31302D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.2:1 | Pass | Pass | Pass |
| Sample text | 1.59: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 #31302D looks to people with the most common types of color vision deficiency.
#31302dProtanopia
no red cones#31302dDeuteranopia
no green cones#322f2fTritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #31302d; }
.text { color: #31302d; }
.border { border: 2px solid #31302d; }
.transparent { background-color: rgb(49 48 45 / 50%); }
.gradient { background: linear-gradient(to right, #31302d, #30312d); }
Similar colors
#332f2cHoly Crow#313330Oil#2e2e2eCarbon Fibre#333232Dark Charcoal#333333Carbon#343434Jet Black#2a2a2aThe End#282828Dire Wolf
Questions
- What color is #31302D?
- #31302D is a dark gray, closest to the named color Holy Crow. It belongs to the black family of colors.
- What is the RGB value of #31302D?
- The RGB value is 49, 48, 45: 49 red, 48 green and 45 blue on a 0 to 255 scale.
- What is the complementary color of #31302D?
- The complementary color is #2D2E31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31302D?
- White text. Black text has a contrast ratio of 1.59:1 and white text 13.2:1. WCAG asks for at least 4.5:1 for normal text.