#312D39 color
The hex color #312D39 is a dark, grayish violet.
In the RGB color model it is made of 19.2% red, 17.6% green and 22.4% blue (49, 45, 57).
Its hue angle is 260°, with 12% saturation and 20% lightness. For print, the CMYK equivalent is 14% cyan, 21% magenta, 0% yellow and 78% black.
The closest named color is Haiti (#2C2A35), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.42:1).
#312D39 color codes
| HEX | #312D39 | |
|---|---|---|
| RGB | rgb(49, 45, 57) | |
| RGB percent | rgb(19.2%, 17.6%, 22.4%) | |
| HSL | hsl(260, 12%, 20%) | |
| HSV / HSB | hsv(260, 21%, 22%) | |
| CMYK | cmyk(14%, 21%, 0%, 78%) | |
| CIE LAB | lab(19.33, 4.73, -6.99) | |
| CIE LCH | lch(19.33, 8.44, 304.11) | |
| CIE XYZ | xyz(2.943, 2.825, 4.26) | |
| Decimal | 3222841 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312D39, 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 #312D39 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.57:1 | Fail | Fail | Fail |
| Sample text | 13.42:1 | Pass | Pass | Pass |
| #312D39 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.42:1 | Pass | Pass | Pass |
| Sample text | 1.57: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 #312D39 looks to people with the most common types of color vision deficiency.
#2b2f3aProtanopia
no red cones#2b2f39Deuteranopia
no green cones#302f31Tritanopia
no blue cones#2f2f2fAchromatopsia
no color vision
CSS examples
.background { background-color: #312d39; }
.text { color: #312d39; }
.border { border: 2px solid #312d39; }
.transparent { background-color: rgb(49 45 57 / 50%); }
.gradient { background: linear-gradient(to right, #312d39, #372d39); }
Similar colors
#2c2a35Haiti#393540Professor Plum#35343fWitches Cauldron#333344Shuriken#342931Melanzane#29292fJaguar#352b30Mystical Shadow#222233Black Velvet
Closest common color name: Jet Black.
Questions
- What color is #312D39?
- #312D39 is a dark, grayish violet, closest to the named color Haiti. It belongs to the black family of colors.
- What is the RGB value of #312D39?
- The RGB value is 49, 45, 57: 49 red, 45 green and 57 blue on a 0 to 255 scale.
- What is the complementary color of #312D39?
- The complementary color is #35392D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312D39?
- White text. Black text has a contrast ratio of 1.57:1 and white text 13.42:1. WCAG asks for at least 4.5:1 for normal text.