#31214D color
The hex color #31214D is a dark, desaturated violet.
In the RGB color model it is made of 19.2% red, 12.9% green and 30.2% blue (49, 33, 77).
Its hue angle is 262°, with 40% saturation and 22% lightness. For print, the CMYK equivalent is 36% cyan, 57% magenta, 0% yellow and 70% black.
The closest named color is Stormy Night (#372354), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.43:1).
#31214D color codes
| HEX | #31214D | |
|---|---|---|
| RGB | rgb(49, 33, 77) | |
| RGB percent | rgb(19.2%, 12.9%, 30.2%) | |
| HSL | hsl(262, 40%, 22%) | |
| HSV / HSB | hsv(262, 57%, 30%) | |
| CMYK | cmyk(36%, 57%, 0%, 70%) | |
| CIE LAB | lab(16.88, 18.89, -24.54) | |
| CIE LCH | lch(16.88, 30.97, 307.59) | |
| CIE XYZ | xyz(3.15, 2.276, 7.293) | |
| Decimal | 3219789 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31214D, 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 #31214D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.46:1 | Fail | Fail | Fail |
| Sample text | 14.43:1 | Pass | Pass | Pass |
| #31214D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.43:1 | Pass | Pass | Pass |
| Sample text | 1.46: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 #31214D looks to people with the most common types of color vision deficiency.
#112a4fProtanopia
no red cones#15294cDeuteranopia
no green cones#2b2a33Tritanopia
no blue cones#2a2a2aAchromatopsia
no color vision
CSS examples
.background { background-color: #31214d; }
.text { color: #31214d; }
.border { border: 2px solid #31214d; }
.transparent { background-color: rgb(49 33 77 / 50%); }
.gradient { background: linear-gradient(to right, #31214d, #47214d); }
Similar colors
#372354Stormy Night#2a2551Pāua#231c4dSilent Orbit#2a2243Midnight Velvet#211d49Azulado#322c56Purple Noir#372d52Midnight Pie#222255Spacescape
Closest common color name: Dark Purple.
Questions
- What color is #31214D?
- #31214D 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 #31214D?
- The RGB value is 49, 33, 77: 49 red, 33 green and 77 blue on a 0 to 255 scale.
- What is the complementary color of #31214D?
- The complementary color is #3D4D21, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31214D?
- White text. Black text has a contrast ratio of 1.46:1 and white text 14.43:1. WCAG asks for at least 4.5:1 for normal text.