#331958 color
The hex color #331958 is a dark, moderate violet.
In the RGB color model it is made of 20% red, 9.8% green and 34.5% blue (51, 25, 88).
Its hue angle is 265°, with 56% saturation and 22% lightness. For print, the CMYK equivalent is 42% cyan, 72% magenta, 0% yellow and 65% black.
The closest named color is Fabric of Space (#341758), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.78:1).
#331958 color codes
| HEX | #331958 | |
|---|---|---|
| RGB | rgb(51, 25, 88) | |
| RGB percent | rgb(20%, 9.8%, 34.5%) | |
| HSL | hsl(265, 56%, 22%) | |
| HSV / HSB | hsv(265, 72%, 35%) | |
| CMYK | cmyk(42%, 72%, 0%, 65%) | |
| CIE LAB | lab(16.02, 27.91, -33.35) | |
| CIE LCH | lch(16.02, 43.49, 309.92) | |
| CIE XYZ | xyz(3.474, 2.104, 9.454) | |
| Decimal | 3348824 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #331958, 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 #331958 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.42:1 | Fail | Fail | Fail |
| Sample text | 14.78:1 | Pass | Pass | Pass |
| #331958 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.78:1 | Pass | Pass | Pass |
| Sample text | 1.42: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 #331958 looks to people with the most common types of color vision deficiency.
#00285aProtanopia
no red cones#002757Deuteranopia
no green cones#2a2836Tritanopia
no blue cones#282828Achromatopsia
no color vision
CSS examples
.background { background-color: #331958; }
.text { color: #331958; }
.border { border: 2px solid #331958; }
.transparent { background-color: rgb(51 25 88 / 50%); }
.gradient { background: linear-gradient(to right, #331958, #531958); }
Similar colors
#341758Fabric of Space#37115cWicked Purple#2d135fVoldemort#332266Dark Dreams#372354Stormy Night#442266Fading Horizon#2f1064Infinite Inkwell#2e2364Indie Go
Closest common color name: Midnight Blue.
Questions
- What color is #331958?
- #331958 is a dark, moderate violet, closest to the named color Fabric of Space. It belongs to the purple family of colors.
- What is the RGB value of #331958?
- The RGB value is 51, 25, 88: 51 red, 25 green and 88 blue on a 0 to 255 scale.
- What is the complementary color of #331958?
- The complementary color is #3E5819, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #331958?
- White text. Black text has a contrast ratio of 1.42:1 and white text 14.78:1. WCAG asks for at least 4.5:1 for normal text.