#3B1C8A#3B1C8A
#3B1C8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.167 H 287.0°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).
Color values
| HEX | #3B1C8A |
|---|---|
| RGB | rgb(59, 28, 138) |
| HSL | hsl(257, 66%, 33%) |
| HSV | hsv(257, 80%, 54%) |
| CMYK | cmyk(57.2%, 79.7%, 0%, 45.9%) |
| CIE-LAB | lab(22.28, 42.60, -55.43) |
| CIE-LCH | lch(22.28, 69.91, 307.54°) |
| OKLab | oklab(34.93% 0.0489 -0.1596) |
| OKLCH | oklch(34.93% 0.167 287) |
| XYZ | xyz(6.8050, 3.5949, 24.3751) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.89
Royal
#0C1793
ΔE00 4.67
Indigo
#4B0082
ΔE00 4.79
Indigo Blue
#3A18B1
ΔE00 5.49
Midnight Blue
#191970
ΔE00 5.94
Cobalt Blue
#030AA7
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B1C8A #6B8A1C
analogous
#1C348A #3B1C8A #721C8A
triadic
#3B1C8A #8A3B1C #1C8A3B
tetradic
#3B1C8A #8A1C34 #6B8A1C #1C8A72
square
#3B1C8A #8A1C34 #6B8A1C #1C8A72
split-complementary
#3B1C8A #8A721C #348A1C
monochromatic
#0F0724 #251257 #3B1C8A #5126BD #7047DA
Accessibility & contrast
On white
12.22
#3B1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3B1C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B1C8A
12.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B1C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B1C8A | 1.00 | 12.22 | 1.72 | 12.22 |
| #FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#173C53
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3b1c8a; /* rgb */ color: rgb(59, 28, 138); /* oklch */ color: oklch(34.9% 0.167 287.0);
Tailwind
colors: {
custom: {
50: '#7b5dad',
500: '#3b1c8a',
950: '#000000',
},
}SCSS
$custom: #3b1c8a; $custom-light: #7b5dad; $custom-dark: #000000;
JSON
{
"hex": "#3b1c8a",
"rgb": {
"r": 59,
"g": 28,
"b": 138
},
"hsl": {
"h": 256.909,
"s": 66.265,
"l": 32.549
},
"oklch": {
"l": 0.34926,
"c": 0.1669,
"h": 287
},
"luminance": 0.03595
}Semantic roles & 50–950 ramp
primary
#3B1C8A
secondary
#9ABB46
accent
#E93FB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F