#312E39 color
The hex color #312E39 is a dark, grayish violet.
In the RGB color model it is made of 19.2% red, 18% green and 22.4% blue (49, 46, 57).
Its hue angle is 256°, with 11% saturation and 20% lightness. For print, the CMYK equivalent is 14% cyan, 19% magenta, 0% yellow and 78% black.
The closest named color is Haiti (#2C2A35), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.29:1).
#312E39 color codes
| HEX | #312E39 | |
|---|---|---|
| RGB | rgb(49, 46, 57) | |
| RGB percent | rgb(19.2%, 18%, 22.4%) | |
| HSL | hsl(256, 11%, 20%) | |
| HSV / HSB | hsv(256, 19%, 22%) | |
| CMYK | cmyk(14%, 19%, 0%, 78%) | |
| CIE LAB | lab(19.65, 4.04, -6.5) | |
| CIE LCH | lch(19.65, 7.66, 301.85) | |
| CIE XYZ | xyz(2.982, 2.902, 4.273) | |
| Decimal | 3223097 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312E39, 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 #312E39 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.58:1 | Fail | Fail | Fail |
| Sample text | 13.29:1 | Pass | Pass | Pass |
| #312E39 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.29: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 #312E39 looks to people with the most common types of color vision deficiency.
#2c3039Protanopia
no red cones#2c2f39Deuteranopia
no green cones#303032Tritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #312e39; }
.text { color: #312e39; }
.border { border: 2px solid #312e39; }
.transparent { background-color: rgb(49 46 57 / 50%); }
.gradient { background: linear-gradient(to right, #312e39, #372e39); }
Similar colors
#2c2a35Haiti#35343fWitches Cauldron#393540Professor Plum#333344Shuriken#29292fJaguar#342931Melanzane#27252aDarth Vader#303543Total Eclipse
Closest common color name: Jet Black.
Questions
- What color is #312E39?
- #312E39 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 #312E39?
- The RGB value is 49, 46, 57: 49 red, 46 green and 57 blue on a 0 to 255 scale.
- What is the complementary color of #312E39?
- The complementary color is #36392E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312E39?
- White text. Black text has a contrast ratio of 1.58:1 and white text 13.29:1. WCAG asks for at least 4.5:1 for normal text.