#331C7A#331C7A
#331C7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.148 H 286.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #331C7A |
|---|---|
| RGB | rgb(51, 28, 122) |
| HSL | hsl(255, 63%, 29%) |
| HSV | hsv(255, 77%, 48%) |
| CMYK | cmyk(58.2%, 77%, 0%, 52.2%) |
| CIE-LAB | lab(19.80, 36.62, -49.44) |
| CIE-LCH | lch(19.80, 61.53, 306.53°) |
| OKLab | oklab(32.49% 0.0408 -0.1423) |
| OKLCH | oklch(32.49% 0.148 286) |
| XYZ | xyz(5.2923, 2.9392, 18.6970) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.77
Indigo (survey)
#380282
ΔE00 4.34
Royal
#0C1793
ΔE00 5.30
Indigo
#4B0082
ΔE00 5.71
Dark Royal Blue
#02066F
ΔE00 6.16
Deep Blue
#040273
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C7A #637A1C
analogous
#1C347A #331C7A #621C7A
triadic
#331C7A #7A331C #1C7A33
tetradic
#331C7A #7A1C34 #637A1C #1C7A62
square
#331C7A #7A1C34 #637A1C #1C7A62
split-complementary
#331C7A #7A621C #347A1C
monochromatic
#0A0619 #1E1148 #331C7A #4827AC #623ED3
Accessibility & contrast
On white
13.23
#331C7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#331C7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C7A
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C7A | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#123649
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #331c7a; /* rgb */ color: rgb(51, 28, 122); /* oklch */ color: oklch(32.5% 0.148 286.0);
Tailwind
colors: {
custom: {
50: '#745ba1',
500: '#331c7a',
950: '#000000',
},
}SCSS
$custom: #331c7a; $custom-light: #745ba1; $custom-dark: #000000;
JSON
{
"hex": "#331c7a",
"rgb": {
"r": 51,
"g": 28,
"b": 122
},
"hsl": {
"h": 254.681,
"s": 62.667,
"l": 29.412
},
"oklch": {
"l": 0.32487,
"c": 0.14806,
"h": 286
},
"luminance": 0.02939
}Semantic roles & 50–950 ramp
primary
#331C7A
secondary
#94AE44
accent
#E642BE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F