#331C7D#331C7D
#331C7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.152 H 285.3°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #331C7D |
|---|---|
| RGB | rgb(51, 28, 125) |
| HSL | hsl(254, 63%, 30%) |
| HSV | hsv(254, 78%, 49%) |
| CMYK | cmyk(59.2%, 77.6%, 0%, 51%) |
| CIE-LAB | lab(20.10, 37.56, -50.86) |
| CIE-LCH | lch(20.10, 63.22, 306.45°) |
| OKLab | oklab(32.79% 0.04 -0.1464) |
| OKLCH | oklch(32.79% 0.152 285.3) |
| XYZ | xyz(5.4810, 3.0147, 19.6911) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.93
Indigo (survey)
#380282
ΔE00 4.17
Royal
#0C1793
ΔE00 4.90
Indigo
#4B0082
ΔE00 5.61
Dark Royal Blue
#02066F
ΔE00 6.20
Darkblue
#00008B
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C7D #667D1C
analogous
#1C357D #331C7D #641C7D
triadic
#331C7D #7D331C #1C7D33
tetradic
#331C7D #7D1C35 #667D1C #1C7D64
square
#331C7D #7D1C35 #667D1C #1C7D64
split-complementary
#331C7D #7D641C #357D1C
monochromatic
#0A0619 #1F114B #331C7D #4727AF #633FD4
Accessibility & contrast
On white
13.10
#331C7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#331C7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C7D
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C7D | 1.00 | 13.10 | 1.60 | 13.10 |
| #FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#0D374B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #331c7d; /* rgb */ color: rgb(51, 28, 125); /* oklch */ color: oklch(32.8% 0.152 285.3);
Tailwind
colors: {
custom: {
50: '#745ba4',
500: '#331c7d',
950: '#000000',
},
}SCSS
$custom: #331c7d; $custom-light: #745ba4; $custom-dark: #000000;
JSON
{
"hex": "#331c7d",
"rgb": {
"r": 51,
"g": 28,
"b": 125
},
"hsl": {
"h": 254.227,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.32793,
"c": 0.15182,
"h": 285.3
},
"luminance": 0.03015
}Semantic roles & 50–950 ramp
primary
#331C7D
secondary
#97B144
accent
#E641BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F