#331F4A color
The hex color #331F4A is a dark, desaturated violet.
In the RGB color model it is made of 20% red, 12.2% green and 29% blue (51, 31, 74).
Its hue angle is 268°, with 41% saturation and 21% lightness. For print, the CMYK equivalent is 31% cyan, 58% magenta, 0% yellow and 71% black.
The closest named color is Stormy Night (#372354), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.63:1).
#331F4A color codes
| HEX | #331F4A | |
|---|---|---|
| RGB | rgb(51, 31, 74) | |
| RGB percent | rgb(20%, 12.2%, 29%) | |
| HSL | hsl(268, 41%, 21%) | |
| HSV / HSB | hsv(268, 58%, 29%) | |
| CMYK | cmyk(31%, 58%, 0%, 71%) | |
| CIE LAB | lab(16.4, 19.96, -23.24) | |
| CIE LCH | lch(16.4, 30.63, 310.66) | |
| CIE XYZ | xyz(3.091, 2.178, 6.735) | |
| Decimal | 3350346 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #331F4A, 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 #331F4A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.44:1 | Fail | Fail | Fail |
| Sample text | 14.63:1 | Pass | Pass | Pass |
| #331F4A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.63: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 #331F4A looks to people with the most common types of color vision deficiency.
#11284bProtanopia
no red cones#172949Deuteranopia
no green cones#2f2731Tritanopia
no blue cones#292929Achromatopsia
no color vision
CSS examples
.background { background-color: #331f4a; }
.text { color: #331f4a; }
.border { border: 2px solid #331f4a; }
.transparent { background-color: rgb(51 31 74 / 50%); }
.gradient { background: linear-gradient(to right, #331f4a, #491f4a); }
Similar colors
#372354Stormy Night#2a2243Midnight Velvet#2a2551Pāua#231c4dSilent Orbit#431c53Plunged Into Darkness#372d52Midnight Pie#211d49Azulado#3b193fCreatures of the Night
Closest common color name: Dark Purple.
Questions
- What color is #331F4A?
- #331F4A 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 #331F4A?
- The RGB value is 51, 31, 74: 51 red, 31 green and 74 blue on a 0 to 255 scale.
- What is the complementary color of #331F4A?
- The complementary color is #364A1F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #331F4A?
- White text. Black text has a contrast ratio of 1.44:1 and white text 14.63:1. WCAG asks for at least 4.5:1 for normal text.