#331D55 color
The hex color #331D55 is a dark, desaturated violet.
In the RGB color model it is made of 20% red, 11.4% green and 33.3% blue (51, 29, 85).
Its hue angle is 264°, with 49% saturation and 22% lightness. For print, the CMYK equivalent is 40% cyan, 66% magenta, 0% yellow and 67% black.
The closest named color is Fabric of Space (#341758), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.51:1).
#331D55 color codes
| HEX | #331D55 | |
|---|---|---|
| RGB | rgb(51, 29, 85) | |
| RGB percent | rgb(20%, 11.4%, 33.3%) | |
| HSL | hsl(264, 49%, 22%) | |
| HSV / HSB | hsv(264, 66%, 33%) | |
| CMYK | cmyk(40%, 66%, 0%, 67%) | |
| CIE LAB | lab(16.69, 24.54, -30.25) | |
| CIE LCH | lch(16.69, 38.95, 309.05) | |
| CIE XYZ | xyz(3.444, 2.238, 8.843) | |
| Decimal | 3349845 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #331D55, 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 #331D55 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.45:1 | Fail | Fail | Fail |
| Sample text | 14.51:1 | Pass | Pass | Pass |
| #331D55 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.51: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 #331D55 looks to people with the most common types of color vision deficiency.
#002957Protanopia
no red cones#072954Deuteranopia
no green cones#2b2936Tritanopia
no blue cones#292929Achromatopsia
no color vision
CSS examples
.background { background-color: #331d55; }
.text { color: #331d55; }
.border { border: 2px solid #331d55; }
.transparent { background-color: rgb(51 29 85 / 50%); }
.gradient { background: linear-gradient(to right, #331d55, #4f1d55); }
Similar colors
#341758Fabric of Space#372354Stormy Night#332266Dark Dreams#231c4dSilent Orbit#2e2364Indie Go#37115cWicked Purple#442266Fading Horizon#2d135fVoldemort
Closest common color name: Midnight Blue.
Questions
- What color is #331D55?
- #331D55 is a dark, desaturated violet, closest to the named color Fabric of Space. It belongs to the purple family of colors.
- What is the RGB value of #331D55?
- The RGB value is 51, 29, 85: 51 red, 29 green and 85 blue on a 0 to 255 scale.
- What is the complementary color of #331D55?
- The complementary color is #3F551D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #331D55?
- White text. Black text has a contrast ratio of 1.45:1 and white text 14.51:1. WCAG asks for at least 4.5:1 for normal text.