#3B1E8F#3B1E8F
#3B1E8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.171 H 285.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).
Color values
| HEX | #3B1E8F |
|---|---|
| RGB | rgb(59, 30, 143) |
| HSL | hsl(255, 65%, 34%) |
| HSV | hsv(255, 79%, 56%) |
| CMYK | cmyk(58.7%, 79%, 0%, 43.9%) |
| CIE-LAB | lab(23.14, 43.10, -57.14) |
| CIE-LCH | lch(23.14, 71.57, 307.02°) |
| OKLab | oklab(35.68% 0.046 -0.1646) |
| OKLCH | oklch(35.68% 0.171 285.6) |
| XYZ | xyz(7.2243, 3.8411, 26.3420) |
| Luminance | 0.0384 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.50
Indigo (survey)
#380282
ΔE00 4.52
Indigo Blue
#3A18B1
ΔE00 4.77
Indigo
#4B0082
ΔE00 5.36
Cobalt Blue
#030AA7
ΔE00 5.66
Ultramarine
#2000B1
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B1E8F #728F1E
analogous
#1E3A8F #3B1E8F #741E8F
triadic
#3B1E8F #8F3B1E #1E8F3B
tetradic
#3B1E8F #8F1E3A #728F1E #1E8F74
square
#3B1E8F #8F1E3A #728F1E #1E8F74
split-complementary
#3B1E8F #8F741E #3A8F1E
monochromatic
#11092A #26135C #3B1E8F #5029C2 #724EDA
Accessibility & contrast
On white
11.88
#3B1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#3B1E8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B1E8F
11.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B1E8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B1E8F | 1.00 | 11.88 | 1.77 | 11.88 |
| #FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#0F3F56
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3b1e8f; /* rgb */ color: rgb(59, 30, 143); /* oklch */ color: oklch(35.7% 0.171 285.6);
Tailwind
colors: {
custom: {
50: '#7c5eb1',
500: '#3b1e8f',
950: '#000000',
},
}SCSS
$custom: #3b1e8f; $custom-light: #7c5eb1; $custom-dark: #000000;
JSON
{
"hex": "#3b1e8f",
"rgb": {
"r": 59,
"g": 30,
"b": 143
},
"hsl": {
"h": 255.398,
"s": 65.318,
"l": 33.922
},
"oklch": {
"l": 0.35677,
"c": 0.17088,
"h": 285.6
},
"luminance": 0.03842
}Semantic roles & 50–950 ramp
primary
#3B1E8F
secondary
#A0BC4C
accent
#E840BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980