#312F2D color
The hex color #312F2D is a dark gray.
In the RGB color model it is made of 19.2% red, 18.4% green and 17.6% blue (49, 47, 45).
Its hue angle is 30°, with 4% saturation and 18% lightness. For print, the CMYK equivalent is 0% cyan, 4% magenta, 8% yellow and 81% black.
The closest named color is Holy Crow (#332F2C), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.33:1).
#312F2D color codes
| HEX | #312F2D | |
|---|---|---|
| RGB | rgb(49, 47, 45) | |
| RGB percent | rgb(19.2%, 18.4%, 17.6%) | |
| HSL | hsl(30, 4%, 18%) | |
| HSV / HSB | hsv(30, 8%, 19%) | |
| CMYK | cmyk(0%, 4%, 8%, 81%) | |
| CIE LAB | lab(19.54, 0.44, 1.6) | |
| CIE LCH | lch(19.54, 1.66, 74.6) | |
| CIE XYZ | xyz(2.757, 2.875, 2.892) | |
| Decimal | 3223341 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312F2D, 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 #312F2D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.58:1 | Fail | Fail | Fail |
| Sample text | 13.33:1 | Pass | Pass | Pass |
| #312F2D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.33: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 #312F2D looks to people with the most common types of color vision deficiency.
#302f2dProtanopia
no red cones#302f2dDeuteranopia
no green cones#322f2eTritanopia
no blue cones#2f2f2fAchromatopsia
no color vision
CSS examples
.background { background-color: #312f2d; }
.text { color: #312f2d; }
.border { border: 2px solid #312f2d; }
.transparent { background-color: rgb(49 47 45 / 50%); }
.gradient { background: linear-gradient(to right, #312f2d, #31312d); }
Similar colors
#332f2cHoly Crow#333232Dark Charcoal#2e2e2eCarbon Fibre#333333Carbon#343434Jet Black#2a2a2aThe End#332e2eNight Rider#3a3532Kilimanjaro
Questions
- What color is #312F2D?
- #312F2D 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 #312F2D?
- The RGB value is 49, 47, 45: 49 red, 47 green and 45 blue on a 0 to 255 scale.
- What is the complementary color of #312F2D?
- The complementary color is #2D2F31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312F2D?
- White text. Black text has a contrast ratio of 1.58:1 and white text 13.33:1. WCAG asks for at least 4.5:1 for normal text.