#3B157F#3B157F
#3B157F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.161 H 291.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #3B157F |
|---|---|
| RGB | rgb(59, 21, 127) |
| HSL | hsl(262, 72%, 29%) |
| HSV | hsv(262, 83%, 50%) |
| CMYK | cmyk(53.5%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(20.04, 42.66, -52.20) |
| CIE-LCH | lch(20.04, 67.42, 309.26°) |
| OKLab | oklab(33.02% 0.0576 -0.15) |
| OKLCH | oklch(33.02% 0.161 291) |
| XYZ | xyz(5.9015, 2.9982, 20.3423) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.55
Indigo
#4B0082
ΔE00 3.56
Royal Purple (survey)
#4B006E
ΔE00 5.39
Midnight Blue
#191970
ΔE00 5.52
Royal
#0C1793
ΔE00 5.63
Darkblue
#00008B
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B157F #597F15
analogous
#15247F #3B157F #70157F
triadic
#3B157F #7F3B15 #157F3B
tetradic
#3B157F #7F1524 #597F15 #157F70
square
#3B157F #7F1524 #597F15 #157F70
split-complementary
#3B157F #7F7015 #247F15
monochromatic
#0C041A #230C4A #3B157F #531EB4 #6F31DD
Accessibility & contrast
On white
13.13
#3B157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#3B157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B157F
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B157F | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#22344B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3b157f; /* rgb */ color: rgb(59, 21, 127); /* oklch */ color: oklch(33.0% 0.161 291.0);
Tailwind
colors: {
custom: {
50: '#7a58a5',
500: '#3b157f',
950: '#000000',
},
}SCSS
$custom: #3b157f; $custom-light: #7a58a5; $custom-dark: #000000;
JSON
{
"hex": "#3b157f",
"rgb": {
"r": 59,
"g": 21,
"b": 127
},
"hsl": {
"h": 261.509,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.33021,
"c": 0.16072,
"h": 291
},
"luminance": 0.02998
}Semantic roles & 50–950 ramp
primary
#3B157F
secondary
#89B43C
accent
#EE39AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F