#331C93#331C93
#331C93 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.179 H 280.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #331C93 |
|---|---|
| RGB | rgb(51, 28, 147) |
| HSL | hsl(252, 68%, 34%) |
| HSV | hsv(252, 81%, 58%) |
| CMYK | cmyk(65.3%, 81%, 0%, 42.4%) |
| CIE-LAB | lab(22.45, 44.32, -60.79) |
| CIE-LCH | lch(22.45, 75.23, 306.10°) |
| OKLab | oklab(35.13% 0.0336 -0.1754) |
| OKLCH | oklch(35.13% 0.179 280.8) |
| XYZ | xyz(7.0453, 3.6404, 27.9295) |
| Luminance | 0.0364 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.29
Indigo Blue
#3A18B1
ΔE00 4.24
Cobalt Blue
#030AA7
ΔE00 4.44
Indigo (survey)
#380282
ΔE00 4.63
Royal Blue (survey)
#0504AA
ΔE00 4.84
Ultramarine
#2000B1
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C93 #7C931C
analogous
#1C4093 #331C93 #6F1C93
triadic
#331C93 #93331C #1C9333
tetradic
#331C93 #931C40 #7C931C #1C936F
square
#331C93 #931C40 #7C931C #1C936F
split-complementary
#331C93 #936F1C #40931C
monochromatic
#0F082C #211260 #331C93 #4526C6 #684CDD
Accessibility & contrast
On white
12.15
#331C93 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#331C93 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C93
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C93 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C93 | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #331c93; /* rgb */ color: rgb(51, 28, 147); /* oklch */ color: oklch(35.1% 0.179 280.8);
Tailwind
colors: {
custom: {
50: '#795cb4',
500: '#331c93',
950: '#000000',
},
}SCSS
$custom: #331c93; $custom-light: #795cb4; $custom-dark: #000000;
JSON
{
"hex": "#331c93",
"rgb": {
"r": 51,
"g": 28,
"b": 147
},
"hsl": {
"h": 251.597,
"s": 68,
"l": 34.314
},
"oklch": {
"l": 0.35131,
"c": 0.17863,
"h": 280.8
},
"luminance": 0.03641
}Semantic roles & 50–950 ramp
primary
#331C93
secondary
#A9BF4C
accent
#EB3DC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980