#3B1987#3B1987
#3B1987 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.166 H 288.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).
Color values
| HEX | #3B1987 |
|---|---|
| RGB | rgb(59, 25, 135) |
| HSL | hsl(259, 69%, 31%) |
| HSV | hsv(259, 81%, 53%) |
| CMYK | cmyk(56.3%, 81.5%, 0%, 47.1%) |
| CIE-LAB | lab(21.48, 43.14, -54.87) |
| CIE-LCH | lch(21.48, 69.80, 308.18°) |
| OKLab | oklab(34.28% 0.052 -0.1579) |
| OKLCH | oklch(34.28% 0.166 288.2) |
| XYZ | xyz(6.5231, 3.3740, 23.2245) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.23
Indigo
#4B0082
ΔE00 4.23
Royal
#0C1793
ΔE00 4.84
Midnight Blue
#191970
ΔE00 5.79
Indigo Blue
#3A18B1
ΔE00 5.93
Darkblue
#00008B
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B1987 #658719
analogous
#192E87 #3B1987 #721987
triadic
#3B1987 #873B19 #19873B
tetradic
#3B1987 #87192E #658719 #198772
square
#3B1987 #87192E #658719 #198772
split-complementary
#3B1987 #877219 #2E8719
monochromatic
#0E0620 #240F53 #3B1987 #5223BB #6F3FDB
Accessibility & contrast
On white
12.54
#3B1987 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#3B1987 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B1987
12.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B1987 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B1987 | 1.00 | 12.54 | 1.67 | 12.54 |
| #FFFFFF | 12.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#1B3950
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3b1987; /* rgb */ color: rgb(59, 25, 135); /* oklch */ color: oklch(34.3% 0.166 288.2);
Tailwind
colors: {
custom: {
50: '#7b5bab',
500: '#3b1987',
950: '#000000',
},
}SCSS
$custom: #3b1987; $custom-light: #7b5bab; $custom-dark: #000000;
JSON
{
"hex": "#3b1987",
"rgb": {
"r": 59,
"g": 25,
"b": 135
},
"hsl": {
"h": 258.545,
"s": 68.75,
"l": 31.373
},
"oklch": {
"l": 0.34275,
"c": 0.16625,
"h": 288.2
},
"luminance": 0.03374
}Semantic roles & 50–950 ramp
primary
#3B1987
secondary
#95BA41
accent
#EC3CB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F