#312050 color
The hex color #312050 is a dark, desaturated violet.
In the RGB color model it is made of 19.2% red, 12.5% green and 31.4% blue (49, 32, 80).
Its hue angle is 261°, with 43% saturation and 22% lightness. For print, the CMYK equivalent is 39% cyan, 60% magenta, 0% yellow and 69% black.
The closest named color is Stormy Night (#372354), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.45:1).
#312050 color codes
| HEX | #312050 | |
|---|---|---|
| RGB | rgb(49, 32, 80) | |
| RGB percent | rgb(19.2%, 12.5%, 31.4%) | |
| HSL | hsl(261, 43%, 22%) | |
| HSV / HSB | hsv(261, 60%, 31%) | |
| CMYK | cmyk(39%, 60%, 0%, 69%) | |
| CIE LAB | lab(16.82, 20.5, -26.67) | |
| CIE LCH | lch(16.82, 33.63, 307.54) | |
| CIE XYZ | xyz(3.231, 2.265, 7.855) | |
| Decimal | 3219536 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312050, 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 #312050 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.45:1 | Fail | Fail | Fail |
| Sample text | 14.45:1 | Pass | Pass | Pass |
| #312050 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.45:1 | Pass | Pass | Pass |
| Sample text | 1.45: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 #312050 looks to people with the most common types of color vision deficiency.
#0b2a52Protanopia
no red cones#11294fDeuteranopia
no green cones#2a2a34Tritanopia
no blue cones#292929Achromatopsia
no color vision
CSS examples
.background { background-color: #312050; }
.text { color: #312050; }
.border { border: 2px solid #312050; }
.transparent { background-color: rgb(49 32 80 / 50%); }
.gradient { background: linear-gradient(to right, #312050, #492050); }
Similar colors
#372354Stormy Night#231c4dSilent Orbit#2a2551Pāua#211d49Azulado#341758Fabric of Space#322c56Purple Noir#222255Spacescape#2a2243Midnight Velvet
Closest common color name: Dark Purple.
Questions
- What color is #312050?
- #312050 is a dark, desaturated violet, closest to the named color Stormy Night. It belongs to the purple family of colors.
- What is the RGB value of #312050?
- The RGB value is 49, 32, 80: 49 red, 32 green and 80 blue on a 0 to 255 scale.
- What is the complementary color of #312050?
- The complementary color is #3F5020, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312050?
- White text. Black text has a contrast ratio of 1.45:1 and white text 14.45:1. WCAG asks for at least 4.5:1 for normal text.