#331C89#331C89
#331C89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.167 H 282.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).
Color values
| HEX | #331C89 |
|---|---|
| RGB | rgb(51, 28, 137) |
| HSL | hsl(253, 66%, 32%) |
| HSV | hsv(253, 80%, 54%) |
| CMYK | cmyk(62.8%, 79.6%, 0%, 46.3%) |
| CIE-LAB | lab(21.36, 41.27, -56.36) |
| CIE-LCH | lch(21.36, 69.86, 306.21°) |
| OKLab | oklab(34.05% 0.0366 -0.1625) |
| OKLCH | oklch(34.05% 0.167 282.7) |
| XYZ | xyz(6.2944, 3.3400, 23.9751) |
| Luminance | 0.0334 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.66
Indigo (survey)
#380282
ΔE00 4.08
Midnight Blue
#191970
ΔE00 5.02
Cobalt Blue
#030AA7
ΔE00 5.47
Darkblue
#00008B
ΔE00 5.63
Indigo
#4B0082
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C89 #72891C
analogous
#1C3B89 #331C89 #6A1C89
triadic
#331C89 #89331C #1C8933
tetradic
#331C89 #891C3B #72891C #1C896A
square
#331C89 #891C3B #72891C #1C896A
split-complementary
#331C89 #896A1C #3B891C
monochromatic
#0D0723 #201256 #331C89 #4626BC #6546D9
Accessibility & contrast
On white
12.59
#331C89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#331C89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C89
12.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C89 | 1.00 | 12.59 | 1.67 | 12.59 |
| #FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #331c89; /* rgb */ color: rgb(51, 28, 137); /* oklch */ color: oklch(34.0% 0.167 282.7);
Tailwind
colors: {
custom: {
50: '#775cad',
500: '#331c89',
950: '#000000',
},
}SCSS
$custom: #331c89; $custom-light: #775cad; $custom-dark: #000000;
JSON
{
"hex": "#331c89",
"rgb": {
"r": 51,
"g": 28,
"b": 137
},
"hsl": {
"h": 252.661,
"s": 66.061,
"l": 32.353
},
"oklch": {
"l": 0.34049,
"c": 0.16661,
"h": 282.7
},
"luminance": 0.0334
}Semantic roles & 50–950 ramp
primary
#331C89
secondary
#A2BB46
accent
#E93FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F