#312828 color
The hex color #312828 is a very dark, grayish red.
In the RGB color model it is made of 19.2% red, 15.7% green and 15.7% blue (49, 40, 40).
Its hue angle is 0°, with 10% saturation and 17% lightness. For print, the CMYK equivalent is 0% cyan, 18% magenta, 18% yellow and 81% black.
The closest named color is Diesel (#322C2B), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.34:1).
#312828 color codes
| HEX | #312828 | |
|---|---|---|
| RGB | rgb(49, 40, 40) | |
| RGB percent | rgb(19.2%, 15.7%, 15.7%) | |
| HSL | hsl(0, 10%, 17%) | |
| HSV / HSB | hsv(0, 18%, 19%) | |
| CMYK | cmyk(0%, 18%, 18%, 81%) | |
| CIE LAB | lab(17.1, 4.18, 1.56) | |
| CIE LCH | lch(17.1, 4.46, 20.45) | |
| CIE XYZ | xyz(2.408, 2.324, 2.329) | |
| Decimal | 3221544 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312828, 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 #312828 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.46:1 | Fail | Fail | Fail |
| Sample text | 14.34:1 | Pass | Pass | Pass |
| #312828 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.34:1 | Pass | Pass | Pass |
| Sample text | 1.46: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 #312828 looks to people with the most common types of color vision deficiency.
#2a2928Protanopia
no red cones#2c2b28Deuteranopia
no green cones#332728Tritanopia
no blue cones#2a2a2aAchromatopsia
no color vision
CSS examples
.background { background-color: #312828; }
.text { color: #312828; }
.border { border: 2px solid #312828; }
.transparent { background-color: rgb(49 40 40 / 50%); }
.gradient { background: linear-gradient(to right, #312828, #312d28); }
Similar colors
#322c2bDiesel#392d2bMole#3b2f2fSmoked Black Coffee#332e2eNight Rider#34282cSmoky Charcoal#302621Wood Bark#352b30Mystical Shadow#312b27Noir
Closest common color name: Jet Black.
Questions
- What color is #312828?
- #312828 is a very dark, grayish red, closest to the named color Diesel. It belongs to the black family of colors.
- What is the RGB value of #312828?
- The RGB value is 49, 40, 40: 49 red, 40 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #312828?
- The complementary color is #283131, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312828?
- White text. Black text has a contrast ratio of 1.46:1 and white text 14.34:1. WCAG asks for at least 4.5:1 for normal text.