#3B1B87#3B1B87
#3B1B87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.164 H 287.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #3B1B87 |
|---|---|
| RGB | rgb(59, 27, 135) |
| HSL | hsl(258, 67%, 32%) |
| HSV | hsv(258, 80%, 53%) |
| CMYK | cmyk(56.3%, 80%, 0%, 47.1%) |
| CIE-LAB | lab(21.81, 42.20, -54.34) |
| CIE-LCH | lch(21.81, 68.80, 307.84°) |
| OKLab | oklab(34.5% 0.0506 -0.1563) |
| OKLCH | oklch(34.5% 0.164 287.9) |
| XYZ | xyz(6.5674, 3.4626, 23.2393) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.61
Indigo
#4B0082
ΔE00 4.52
Royal
#0C1793
ΔE00 4.86
Midnight Blue
#191970
ΔE00 5.72
Indigo Blue
#3A18B1
ΔE00 5.94
Cobalt Blue
#030AA7
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B1B87 #67871B
analogous
#1B3187 #3B1B87 #711B87
triadic
#3B1B87 #873B1B #1B873B
tetradic
#3B1B87 #871B31 #67871B #1B8771
square
#3B1B87 #871B31 #67871B #1B8771
split-complementary
#3B1B87 #87711B #31871B
monochromatic
#0E0721 #251154 #3B1B87 #5125BA #7043D9
Accessibility & contrast
On white
12.41
#3B1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#3B1B87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B1B87
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B1B87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B1B87 | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#1B3A51
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3b1b87; /* rgb */ color: rgb(59, 27, 135); /* oklch */ color: oklch(34.5% 0.164 287.9);
Tailwind
colors: {
custom: {
50: '#7a5cab',
500: '#3b1b87',
950: '#000000',
},
}SCSS
$custom: #3b1b87; $custom-light: #7a5cab; $custom-dark: #000000;
JSON
{
"hex": "#3b1b87",
"rgb": {
"r": 59,
"g": 27,
"b": 135
},
"hsl": {
"h": 257.778,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.34501,
"c": 0.16433,
"h": 287.9
},
"luminance": 0.03463
}Semantic roles & 50–950 ramp
primary
#3B1B87
secondary
#97BA44
accent
#EA3EB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F