#312A2F color
The hex color #312A2F is a dark gray.
In the RGB color model it is made of 19.2% red, 16.5% green and 18.4% blue (49, 42, 47).
Its hue angle is 317°, with 8% saturation and 18% lightness. For print, the CMYK equivalent is 0% cyan, 14% magenta, 4% yellow and 81% black.
The closest named color is Mystical Shadow (#352B30), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.97:1).
#312A2F color codes
| HEX | #312A2F | |
|---|---|---|
| RGB | rgb(49, 42, 47) | |
| RGB percent | rgb(19.2%, 16.5%, 18.4%) | |
| HSL | hsl(317, 8%, 18%) | |
| HSV / HSB | hsv(317, 14%, 19%) | |
| CMYK | cmyk(0%, 14%, 4%, 81%) | |
| CIE LAB | lab(17.98, 4.32, -2.06) | |
| CIE LCH | lch(17.98, 4.79, 334.52) | |
| CIE XYZ | xyz(2.608, 2.514, 3.037) | |
| Decimal | 3222063 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312A2F, 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 #312A2F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.5:1 | Fail | Fail | Fail |
| Sample text | 13.97:1 | Pass | Pass | Pass |
| #312A2F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.97:1 | Pass | Pass | Pass |
| Sample text | 1.5: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 #312A2F looks to people with the most common types of color vision deficiency.
#2a2b2fProtanopia
no red cones#2c2c2fDeuteranopia
no green cones#322a2cTritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #312a2f; }
.text { color: #312a2f; }
.border { border: 2px solid #312a2f; }
.transparent { background-color: rgb(49 42 47 / 50%); }
.gradient { background: linear-gradient(to right, #312a2f, #312a2c); }
Similar colors
#352b30Mystical Shadow#34282cSmoky Charcoal#342931Melanzane#27252aDarth Vader#252024Ink Black#332e2eNight Rider#322c2bDiesel#2c2a35Haiti
Closest common color name: Jet Black.
Questions
- What color is #312A2F?
- #312A2F is a dark gray, closest to the named color Mystical Shadow. It belongs to the black family of colors.
- What is the RGB value of #312A2F?
- The RGB value is 49, 42, 47: 49 red, 42 green and 47 blue on a 0 to 255 scale.
- What is the complementary color of #312A2F?
- The complementary color is #2A312C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312A2F?
- White text. Black text has a contrast ratio of 1.5:1 and white text 13.97:1. WCAG asks for at least 4.5:1 for normal text.