#31302E color
The hex color #31302E is a dark gray.
In the RGB color model it is made of 19.2% red, 18.8% green and 18% blue (49, 48, 46).
Its hue angle is 40°, with 3% saturation and 19% lightness. For print, the CMYK equivalent is 0% cyan, 2% magenta, 6% yellow and 81% black.
The closest named color is Carbon Fibre (#2E2E2E), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.18:1).
#31302E color codes
| HEX | #31302E | |
|---|---|---|
| RGB | rgb(49, 48, 46) | |
| RGB percent | rgb(19.2%, 18.8%, 18%) | |
| HSL | hsl(40, 3%, 19%) | |
| HSV / HSB | hsv(40, 6%, 19%) | |
| CMYK | cmyk(0%, 2%, 6%, 81%) | |
| CIE LAB | lab(19.9, -0.01, 1.44) | |
| CIE LCH | lch(19.9, 1.44, 90.5) | |
| CIE XYZ | xyz(2.817, 2.964, 3.008) | |
| Decimal | 3223598 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31302E, 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 #31302E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.59:1 | Fail | Fail | Fail |
| Sample text | 13.18:1 | Pass | Pass | Pass |
| #31302E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.18: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 #31302E looks to people with the most common types of color vision deficiency.
#31302eProtanopia
no red cones#31302eDeuteranopia
no green cones#32302fTritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #31302e; }
.text { color: #31302e; }
.border { border: 2px solid #31302e; }
.transparent { background-color: rgb(49 48 46 / 50%); }
.gradient { background: linear-gradient(to right, #31302e, #31312e); }
Similar colors
#2e2e2eCarbon Fibre#333232Dark Charcoal#333333Carbon#343434Jet Black#332f2cHoly Crow#313330Oil#2a2a2aThe End#383838Graphite
Questions
- What color is #31302E?
- #31302E is a dark gray, closest to the named color Carbon Fibre. It belongs to the black family of colors.
- What is the RGB value of #31302E?
- The RGB value is 49, 48, 46: 49 red, 48 green and 46 blue on a 0 to 255 scale.
- What is the complementary color of #31302E?
- The complementary color is #2E2F31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31302E?
- White text. Black text has a contrast ratio of 1.59:1 and white text 13.18:1. WCAG asks for at least 4.5:1 for normal text.