#3B157E#3B157E
#3B157E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.160 H 291.3°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).
Color values
| HEX | #3B157E |
|---|---|
| RGB | rgb(59, 21, 126) |
| HSL | hsl(262, 71%, 29%) |
| HSV | hsv(262, 83%, 49%) |
| CMYK | cmyk(53.2%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(19.93, 42.38, -51.74) |
| CIE-LCH | lch(19.93, 66.88, 309.32°) |
| OKLab | oklab(32.92% 0.0579 -0.1487) |
| OKLCH | oklch(32.92% 0.16 291.3) |
| XYZ | xyz(5.8366, 2.9723, 20.0008) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.60
Indigo
#4B0082
ΔE00 3.56
Royal Purple (survey)
#4B006E
ΔE00 5.29
Midnight Blue
#191970
ΔE00 5.48
Royal
#0C1793
ΔE00 5.74
Darkblue
#00008B
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B157E #587E15
analogous
#15247E #3B157E #70157E
triadic
#3B157E #7E3B15 #157E3B
tetradic
#3B157E #7E1524 #587E15 #157E70
square
#3B157E #7E1524 #587E15 #157E70
split-complementary
#3B157E #7E7015 #247E15
monochromatic
#0C041A #220C4A #3B157E #541EB2 #6F31DD
Accessibility & contrast
On white
13.17
#3B157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#3B157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B157E
13.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B157E | 1.00 | 13.17 | 1.59 | 13.17 |
| #FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#23344A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3b157e; /* rgb */ color: rgb(59, 21, 126); /* oklch */ color: oklch(32.9% 0.160 291.3);
Tailwind
colors: {
custom: {
50: '#7958a4',
500: '#3b157e',
950: '#000000',
},
}SCSS
$custom: #3b157e; $custom-light: #7958a4; $custom-dark: #000000;
JSON
{
"hex": "#3b157e",
"rgb": {
"r": 59,
"g": 21,
"b": 126
},
"hsl": {
"h": 261.714,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.32918,
"c": 0.15958,
"h": 291.3
},
"luminance": 0.02972
}Semantic roles & 50–950 ramp
primary
#3B157E
secondary
#88B33C
accent
#EE3AAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F