#331B81#331B81
#331B81 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.158 H 284.5°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #331B81 |
|---|---|
| RGB | rgb(51, 27, 129) |
| HSL | hsl(254, 65%, 31%) |
| HSV | hsv(254, 79%, 51%) |
| CMYK | cmyk(60.5%, 79.1%, 0%, 49.4%) |
| CIE-LAB | lab(20.33, 39.32, -53.02) |
| CIE-LCH | lch(20.33, 66.01, 306.56°) |
| OKLab | oklab(33.08% 0.0396 -0.1528) |
| OKLCH | oklch(33.08% 0.158 284.5) |
| XYZ | xyz(5.7184, 3.0723, 21.0563) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.81
Midnight Blue
#191970
ΔE00 4.25
Royal
#0C1793
ΔE00 4.37
Indigo
#4B0082
ΔE00 5.39
Darkblue
#00008B
ΔE00 5.80
Navy
#000080
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331B81 #69811B
analogous
#1B3681 #331B81 #661B81
triadic
#331B81 #81331B #1B8133
tetradic
#331B81 #811B36 #69811B #1B8166
square
#331B81 #811B36 #69811B #1B8166
split-complementary
#331B81 #81661B #36811B
monochromatic
#0B061C #1F104E #331B81 #4726B4 #633FD7
Accessibility & contrast
On white
13.01
#331B81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#331B81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331B81
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331B81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331B81 | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#05384D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #331b81; /* rgb */ color: rgb(51, 27, 129); /* oklch */ color: oklch(33.1% 0.158 284.5);
Tailwind
colors: {
custom: {
50: '#755ba7',
500: '#331b81',
950: '#000000',
},
}SCSS
$custom: #331b81; $custom-light: #755ba7; $custom-dark: #000000;
JSON
{
"hex": "#331b81",
"rgb": {
"r": 51,
"g": 27,
"b": 129
},
"hsl": {
"h": 254.118,
"s": 65.385,
"l": 30.588
},
"oklch": {
"l": 0.33078,
"c": 0.15782,
"h": 284.5
},
"luminance": 0.03073
}Semantic roles & 50–950 ramp
primary
#331B81
secondary
#9AB543
accent
#E83FC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F