#331A7E#331A7E
#331A7E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.155 H 285.4°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).
Color values
| HEX | #331A7E |
|---|---|
| RGB | rgb(51, 26, 126) |
| HSL | hsl(255, 66%, 30%) |
| HSV | hsv(255, 79%, 49%) |
| CMYK | cmyk(59.5%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(19.84, 38.92, -51.93) |
| CIE-LCH | lch(19.84, 64.89, 306.85°) |
| OKLab | oklab(32.64% 0.0413 -0.1496) |
| OKLCH | oklch(32.64% 0.155 285.4) |
| XYZ | xyz(5.4994, 2.9486, 20.0140) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.69
Midnight Blue
#191970
ΔE00 4.06
Royal
#0C1793
ΔE00 4.70
Indigo
#4B0082
ΔE00 5.26
Darkblue
#00008B
ΔE00 5.86
Navy
#000080
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331A7E #657E1A
analogous
#1A337E #331A7E #651A7E
triadic
#331A7E #7E331A #1A7E33
tetradic
#331A7E #7E1A33 #657E1A #1A7E65
square
#331A7E #7E1A33 #657E1A #1A7E65
split-complementary
#331A7E #7E651A #337E1A
monochromatic
#0A0519 #1E104B #331A7E #4824B1 #623CD7
Accessibility & contrast
On white
13.21
#331A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#331A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331A7E
13.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331A7E | 1.00 | 13.21 | 1.59 | 13.21 |
| #FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#0B374B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #331a7e; /* rgb */ color: rgb(51, 26, 126); /* oklch */ color: oklch(32.6% 0.155 285.4);
Tailwind
colors: {
custom: {
50: '#755aa4',
500: '#331a7e',
950: '#000000',
},
}SCSS
$custom: #331a7e; $custom-light: #755aa4; $custom-dark: #000000;
JSON
{
"hex": "#331a7e",
"rgb": {
"r": 51,
"g": 26,
"b": 126
},
"hsl": {
"h": 255,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.32638,
"c": 0.15515,
"h": 285.4
},
"luminance": 0.02949
}Semantic roles & 50–950 ramp
primary
#331A7E
secondary
#96B242
accent
#E93FBE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F