#3B159F#3B159F
#3B159F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.196 H 283.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3B159F |
|---|---|
| RGB | rgb(59, 21, 159) |
| HSL | hsl(257, 77%, 35%) |
| HSV | hsv(257, 87%, 62%) |
| CMYK | cmyk(62.9%, 86.8%, 0%, 37.6%) |
| CIE-LAB | lab(23.57, 51.52, -66.29) |
| CIE-LCH | lch(23.57, 83.96, 307.86°) |
| OKLab | oklab(36.49% 0.0455 -0.1911) |
| OKLCH | oklch(36.49% 0.196 283.4) |
| XYZ | xyz(8.3279, 3.9688, 33.1214) |
| Luminance | 0.0397 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.52
Ultramarine
#2000B1
ΔE00 3.59
Cobalt Blue
#030AA7
ΔE00 4.00
Royal Blue (survey)
#0504AA
ΔE00 4.13
Royal
#0C1793
ΔE00 4.55
Indigo (survey)
#380282
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B159F #799F15
analogous
#15349F #3B159F #80159F
triadic
#3B159F #9F3B15 #159F3B
tetradic
#3B159F #9F1534 #799F15 #159F80
square
#3B159F #9F1534 #799F15 #159F80
split-complementary
#3B159F #9F8015 #349F15
monochromatic
#130733 #270E69 #3B159F #4F1CD5 #7348E7
Accessibility & contrast
On white
11.71
#3B159F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3B159F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B159F
11.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B159F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B159F | 1.00 | 11.71 | 1.79 | 11.71 |
| #FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3b159f; /* rgb */ color: rgb(59, 21, 159); /* oklch */ color: oklch(36.5% 0.196 283.4);
Tailwind
colors: {
custom: {
50: '#7f5bbd',
500: '#3b159f',
950: '#000000',
},
}SCSS
$custom: #3b159f; $custom-light: #7f5bbd; $custom-dark: #000000;
JSON
{
"hex": "#3b159f",
"rgb": {
"r": 59,
"g": 21,
"b": 159
},
"hsl": {
"h": 256.522,
"s": 76.667,
"l": 35.294
},
"oklch": {
"l": 0.3649,
"c": 0.19646,
"h": 283.4
},
"luminance": 0.03969
}Semantic roles & 50–950 ramp
primary
#3B159F
secondary
#A5C848
accent
#F335BF
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981