#312334 color
The hex color #312334 is a very dark, grayish magenta.
In the RGB color model it is made of 19.2% red, 13.7% green and 20.4% blue (49, 35, 52).
Its hue angle is 289°, with 20% saturation and 17% lightness. For print, the CMYK equivalent is 6% cyan, 33% magenta, 0% yellow and 80% black.
The closest named color is Melanzane (#342931), a difference of 5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.78:1).
#312334 color codes
| HEX | #312334 | |
|---|---|---|
| RGB | rgb(49, 35, 52) | |
| RGB percent | rgb(19.2%, 13.7%, 20.4%) | |
| HSL | hsl(289, 20%, 17%) | |
| HSV / HSB | hsv(289, 33%, 20%) | |
| CMYK | cmyk(6%, 33%, 0%, 80%) | |
| CIE LAB | lab(16.02, 10.44, -8.53) | |
| CIE LCH | lch(16.02, 13.48, 320.75) | |
| CIE XYZ | xyz(2.487, 2.103, 3.523) | |
| Decimal | 3220276 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312334, 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 #312334 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.42:1 | Fail | Fail | Fail |
| Sample text | 14.78:1 | Pass | Pass | Pass |
| #312334 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.78:1 | Pass | Pass | Pass |
| Sample text | 1.42: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 #312334 looks to people with the most common types of color vision deficiency.
#212735Protanopia
no red cones#242833Deuteranopia
no green cones#312529Tritanopia
no blue cones#282828Achromatopsia
no color vision
CSS examples
.background { background-color: #312334; }
.text { color: #312334; }
.border { border: 2px solid #312334; }
.transparent { background-color: rgb(49 35 52 / 50%); }
.gradient { background: linear-gradient(to right, #312334, #34232e); }
Similar colors
#342931Melanzane#301934Dark Purple#443240Voodoo#403547Royal Decree#2c1620Black Cherry#42364cCall It a Night#1d0d1dShot in the Dark#222233Black Velvet
Questions
- What color is #312334?
- #312334 is a very dark, grayish magenta, closest to the named color Melanzane. It belongs to the purple family of colors.
- What is the RGB value of #312334?
- The RGB value is 49, 35, 52: 49 red, 35 green and 52 blue on a 0 to 255 scale.
- What is the complementary color of #312334?
- The complementary color is #263423, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312334?
- White text. Black text has a contrast ratio of 1.42:1 and white text 14.78:1. WCAG asks for at least 4.5:1 for normal text.