#31203B color
The hex color #31203B is a very dark, desaturated violet.
In the RGB color model it is made of 19.2% red, 12.5% green and 23.1% blue (49, 32, 59).
Its hue angle is 278°, with 30% saturation and 18% lightness. For print, the CMYK equivalent is 17% cyan, 46% magenta, 0% yellow and 77% black.
The closest named color is Dark Purple (#301934), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15:1).
#31203B color codes
| HEX | #31203B | |
|---|---|---|
| RGB | rgb(49, 32, 59) | |
| RGB percent | rgb(19.2%, 12.5%, 23.1%) | |
| HSL | hsl(278, 30%, 18%) | |
| HSV / HSB | hsv(278, 46%, 23%) | |
| CMYK | cmyk(17%, 46%, 0%, 77%) | |
| CIE LAB | lab(15.5, 14.36, -14.26) | |
| CIE LCH | lch(15.5, 20.24, 315.19) | |
| CIE XYZ | xyz(2.572, 2.002, 4.388) | |
| Decimal | 3219515 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31203B, 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 #31203B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.4:1 | Fail | Fail | Fail |
| Sample text | 15:1 | Pass | Pass | Pass |
| #31203B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15:1 | Pass | Pass | Pass |
| Sample text | 1.4: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 #31203B looks to people with the most common types of color vision deficiency.
#1b263cProtanopia
no red cones#1f273aDeuteranopia
no green cones#30242aTritanopia
no blue cones#272727Achromatopsia
no color vision
CSS examples
.background { background-color: #31203b; }
.text { color: #31203b; }
.border { border: 2px solid #31203b; }
.transparent { background-color: rgb(49 32 59 / 50%); }
.gradient { background: linear-gradient(to right, #31203b, #3b2037); }
Similar colors
#301934Dark Purple#2a2243Midnight Velvet#3c2f4eSanctum of Shadows#3b193fCreatures of the Night#2b0f2eDark Prom Queen#442244Purple Void#372d52Midnight Pie#391531Nightly Voyager
Questions
- What color is #31203B?
- #31203B is a very dark, desaturated violet, closest to the named color Dark Purple. It belongs to the purple family of colors.
- What is the RGB value of #31203B?
- The RGB value is 49, 32, 59: 49 red, 32 green and 59 blue on a 0 to 255 scale.
- What is the complementary color of #31203B?
- The complementary color is #2A3B20, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31203B?
- White text. Black text has a contrast ratio of 1.4:1 and white text 15:1. WCAG asks for at least 4.5:1 for normal text.