#3B1C8B#3B1C8B
#3B1C8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.168 H 286.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).
Color values
| HEX | #3B1C8B |
|---|---|
| RGB | rgb(59, 28, 139) |
| HSL | hsl(257, 66%, 33%) |
| HSV | hsv(257, 80%, 55%) |
| CMYK | cmyk(57.6%, 79.9%, 0%, 45.5%) |
| CIE-LAB | lab(22.39, 42.89, -55.89) |
| CIE-LCH | lch(22.39, 70.45, 307.51°) |
| OKLab | oklab(35.03% 0.0486 -0.1609) |
| OKLCH | oklch(35.03% 0.168 286.8) |
| XYZ | xyz(6.8777, 3.6240, 24.7582) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.93
Royal
#0C1793
ΔE00 4.61
Indigo
#4B0082
ΔE00 4.84
Indigo Blue
#3A18B1
ΔE00 5.33
Cobalt Blue
#030AA7
ΔE00 5.89
Midnight Blue
#191970
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B1C8B #6C8B1C
analogous
#1C348B #3B1C8B #731C8B
triadic
#3B1C8B #8B3B1C #1C8B3B
tetradic
#3B1C8B #8B1C34 #6C8B1C #1C8B73
square
#3B1C8B #8B1C34 #6C8B1C #1C8B73
split-complementary
#3B1C8B #8B731C #348B1C
monochromatic
#100725 #251258 #3B1C8B #5126BE #7047DA
Accessibility & contrast
On white
12.18
#3B1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3B1C8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B1C8B
12.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B1C8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B1C8B | 1.00 | 12.18 | 1.72 | 12.18 |
| #FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#163C53
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3b1c8b; /* rgb */ color: rgb(59, 28, 139); /* oklch */ color: oklch(35.0% 0.168 286.8);
Tailwind
colors: {
custom: {
50: '#7b5dae',
500: '#3b1c8b',
950: '#000000',
},
}SCSS
$custom: #3b1c8b; $custom-light: #7b5dae; $custom-dark: #000000;
JSON
{
"hex": "#3b1c8b",
"rgb": {
"r": 59,
"g": 28,
"b": 139
},
"hsl": {
"h": 256.757,
"s": 66.467,
"l": 32.745
},
"oklch": {
"l": 0.35028,
"c": 0.16809,
"h": 286.8
},
"luminance": 0.03624
}Semantic roles & 50–950 ramp
primary
#3B1C8B
secondary
#9BBC47
accent
#E93EBA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F