#312F2E color
The hex color #312F2E is a dark gray.
In the RGB color model it is made of 19.2% red, 18.4% green and 18% blue (49, 47, 46).
Its hue angle is 20°, with 3% saturation and 19% lightness. For print, the CMYK equivalent is 0% cyan, 4% magenta, 6% yellow and 81% black.
The closest named color is Dark Charcoal (#333232), a difference of 1.2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.32:1).
#312F2E color codes
| HEX | #312F2E | |
|---|---|---|
| RGB | rgb(49, 47, 46) | |
| RGB percent | rgb(19.2%, 18.4%, 18%) | |
| HSL | hsl(20, 3%, 19%) | |
| HSV / HSB | hsv(20, 6%, 19%) | |
| CMYK | cmyk(0%, 4%, 6%, 81%) | |
| CIE LAB | lab(19.57, 0.66, 0.96) | |
| CIE LCH | lch(19.57, 1.17, 55.29) | |
| CIE XYZ | xyz(2.776, 2.883, 2.995) | |
| Decimal | 3223342 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312F2E, 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 #312F2E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.58:1 | Fail | Fail | Fail |
| Sample text | 13.32:1 | Pass | Pass | Pass |
| #312F2E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.32:1 | Pass | Pass | Pass |
| Sample text | 1.58: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 #312F2E looks to people with the most common types of color vision deficiency.
#302f2eProtanopia
no red cones#30302eDeuteranopia
no green cones#322f2fTritanopia
no blue cones#2f2f2fAchromatopsia
no color vision
CSS examples
.background { background-color: #312f2e; }
.text { color: #312f2e; }
.border { border: 2px solid #312f2e; }
.transparent { background-color: rgb(49 47 46 / 50%); }
.gradient { background: linear-gradient(to right, #312f2e, #31312e); }
Similar colors
#333232Dark Charcoal#2e2e2eCarbon Fibre#332f2cHoly Crow#333333Carbon#343434Jet Black#2a2a2aThe End#332e2eNight Rider#322c2bDiesel
Questions
- What color is #312F2E?
- #312F2E is a dark gray, closest to the named color Dark Charcoal. It belongs to the black family of colors.
- What is the RGB value of #312F2E?
- The RGB value is 49, 47, 46: 49 red, 47 green and 46 blue on a 0 to 255 scale.
- What is the complementary color of #312F2E?
- The complementary color is #2E3031, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312F2E?
- White text. Black text has a contrast ratio of 1.58:1 and white text 13.32:1. WCAG asks for at least 4.5:1 for normal text.