#331B5C color
The hex color #331B5C is a dark, moderate violet.
In the RGB color model it is made of 20% red, 10.6% green and 36.1% blue (51, 27, 92).
Its hue angle is 262°, with 55% saturation and 23% lightness. For print, the CMYK equivalent is 45% cyan, 71% magenta, 0% yellow and 64% black.
The closest named color is Fabric of Space (#341758), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.46:1).
#331B5C color codes
| HEX | #331B5C | |
|---|---|---|
| RGB | rgb(51, 27, 92) | |
| RGB percent | rgb(20%, 10.6%, 36.1%) | |
| HSL | hsl(262, 55%, 23%) | |
| HSV / HSB | hsv(262, 71%, 36%) | |
| CMYK | cmyk(45%, 71%, 0%, 64%) | |
| CIE LAB | lab(16.8, 27.91, -34.77) | |
| CIE LCH | lch(16.8, 44.59, 308.75) | |
| CIE XYZ | xyz(3.688, 2.26, 10.365) | |
| Decimal | 3349340 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #331B5C, 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 #331B5C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.45:1 | Fail | Fail | Fail |
| Sample text | 14.46:1 | Pass | Pass | Pass |
| #331B5C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.46: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 #331B5C looks to people with the most common types of color vision deficiency.
#002a5eProtanopia
no red cones#00295bDeuteranopia
no green cones#282a39Tritanopia
no blue cones#292929Achromatopsia
no color vision
CSS examples
.background { background-color: #331b5c; }
.text { color: #331b5c; }
.border { border: 2px solid #331b5c; }
.transparent { background-color: rgb(51 27 92 / 50%); }
.gradient { background: linear-gradient(to right, #331b5c, #541b5c); }
Similar colors
#341758Fabric of Space#332266Dark Dreams#2d135fVoldemort#37115cWicked Purple#2e2364Indie Go#442266Fading Horizon#2f1064Infinite Inkwell#372354Stormy Night
Closest common color name: Midnight Blue.
Questions
- What color is #331B5C?
- #331B5C 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 #331B5C?
- The RGB value is 51, 27, 92: 51 red, 27 green and 92 blue on a 0 to 255 scale.
- What is the complementary color of #331B5C?
- The complementary color is #445C1B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #331B5C?
- White text. Black text has a contrast ratio of 1.45:1 and white text 14.46:1. WCAG asks for at least 4.5:1 for normal text.