#312D34 color
The hex color #312D34 is a dark gray.
In the RGB color model it is made of 19.2% red, 17.6% green and 20.4% blue (49, 45, 52).
Its hue angle is 274°, with 7% saturation and 19% lightness. For print, the CMYK equivalent is 6% cyan, 13% magenta, 0% yellow and 80% black.
The closest named color is Haiti (#2C2A35), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.5:1).
#312D34 color codes
| HEX | #312D34 | |
|---|---|---|
| RGB | rgb(49, 45, 52) | |
| RGB percent | rgb(19.2%, 17.6%, 20.4%) | |
| HSL | hsl(274, 7%, 19%) | |
| HSV / HSB | hsv(274, 13%, 20%) | |
| CMYK | cmyk(6%, 13%, 0%, 80%) | |
| CIE LAB | lab(19.13, 3.45, -3.83) | |
| CIE LCH | lch(19.13, 5.16, 312) | |
| CIE XYZ | xyz(2.825, 2.778, 3.635) | |
| Decimal | 3222836 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312D34, 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 #312D34 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.56:1 | Fail | Fail | Fail |
| Sample text | 13.5:1 | Pass | Pass | Pass |
| #312D34 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.5:1 | Pass | Pass | Pass |
| Sample text | 1.56: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 #312D34 looks to people with the most common types of color vision deficiency.
#2c2e34Protanopia
no red cones#2d2f34Deuteranopia
no green cones#312e2fTritanopia
no blue cones#2e2e2eAchromatopsia
no color vision
CSS examples
.background { background-color: #312d34; }
.text { color: #312d34; }
.border { border: 2px solid #312d34; }
.transparent { background-color: rgb(49 45 52 / 50%); }
.gradient { background: linear-gradient(to right, #312d34, #342d33); }
Similar colors
#2c2a35Haiti#29292fJaguar#27252aDarth Vader#35343fWitches Cauldron#352b30Mystical Shadow#393540Professor Plum#28282dAnthracite#342931Melanzane
Closest common color name: Jet Black.
Questions
- What color is #312D34?
- #312D34 is a dark gray, closest to the named color Haiti. It belongs to the black family of colors.
- What is the RGB value of #312D34?
- The RGB value is 49, 45, 52: 49 red, 45 green and 52 blue on a 0 to 255 scale.
- What is the complementary color of #312D34?
- The complementary color is #30342D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312D34?
- White text. Black text has a contrast ratio of 1.56:1 and white text 13.5:1. WCAG asks for at least 4.5:1 for normal text.