#312533 color
The hex color #312533 is a very dark, grayish magenta.
In the RGB color model it is made of 19.2% red, 14.5% green and 20% blue (49, 37, 51).
Its hue angle is 291°, with 16% saturation and 17% lightness. For print, the CMYK equivalent is 4% cyan, 27% magenta, 0% yellow and 80% black.
The closest named color is Melanzane (#342931), a difference of 3.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.55:1).
#312533 color codes
| HEX | #312533 | |
|---|---|---|
| RGB | rgb(49, 37, 51) | |
| RGB percent | rgb(19.2%, 14.5%, 20%) | |
| HSL | hsl(291, 16%, 17%) | |
| HSV / HSB | hsv(291, 27%, 20%) | |
| CMYK | cmyk(4%, 27%, 0%, 80%) | |
| CIE LAB | lab(16.58, 8.78, -6.97) | |
| CIE LCH | lch(16.58, 11.21, 321.56) | |
| CIE XYZ | xyz(2.526, 2.215, 3.426) | |
| Decimal | 3220787 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312533, 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 #312533 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.44:1 | Fail | Fail | Fail |
| Sample text | 14.55:1 | Pass | Pass | Pass |
| #312533 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.55:1 | Pass | Pass | Pass |
| Sample text | 1.44: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 #312533 looks to people with the most common types of color vision deficiency.
#242834Protanopia
no red cones#262933Deuteranopia
no green cones#31262aTritanopia
no blue cones#292929Achromatopsia
no color vision
CSS examples
.background { background-color: #312533; }
.text { color: #312533; }
.border { border: 2px solid #312533; }
.transparent { background-color: rgb(49 37 51 / 50%); }
.gradient { background: linear-gradient(to right, #312533, #33252e); }
Similar colors
#342931Melanzane#443240Voodoo#352b30Mystical Shadow#34282cSmoky Charcoal#403547Royal Decree#2c2a35Haiti#222233Black Velvet#393540Professor Plum
Closest common color name: Dark Purple.
Questions
- What color is #312533?
- #312533 is a very dark, grayish magenta, closest to the named color Melanzane. It belongs to the black family of colors.
- What is the RGB value of #312533?
- The RGB value is 49, 37, 51: 49 red, 37 green and 51 blue on a 0 to 255 scale.
- What is the complementary color of #312533?
- The complementary color is #273325, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312533?
- White text. Black text has a contrast ratio of 1.44:1 and white text 14.55:1. WCAG asks for at least 4.5:1 for normal text.