#3B158E#3B158E
#3B158E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.178 H 287.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).
Color values
| HEX | #3B158E |
|---|---|
| RGB | rgb(59, 21, 142) |
| HSL | hsl(259, 74%, 32%) |
| HSV | hsv(259, 85%, 56%) |
| CMYK | cmyk(58.5%, 85.2%, 0%, 44.3%) |
| CIE-LAB | lab(21.65, 46.83, -58.98) |
| CIE-LCH | lch(21.65, 75.31, 308.45°) |
| OKLab | oklab(34.61% 0.052 -0.1698) |
| OKLCH | oklch(34.61% 0.178 287) |
| XYZ | xyz(6.9528, 3.4187, 25.8795) |
| Luminance | 0.0342 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.03
Indigo
#4B0082
ΔE00 4.17
Royal
#0C1793
ΔE00 4.46
Indigo Blue
#3A18B1
ΔE00 4.93
Cobalt Blue
#030AA7
ΔE00 5.17
Ultramarine
#2000B1
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B158E #688E15
analogous
#152C8E #3B158E #78158E
triadic
#3B158E #8E3B15 #158E3B
tetradic
#3B158E #8E152C #688E15 #158E78
square
#3B158E #8E152C #688E15 #158E78
split-complementary
#3B158E #8E7815 #2C8E15
monochromatic
#0F0523 #250D59 #3B158E #511DC3 #703BE2
Accessibility & contrast
On white
12.47
#3B158E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#3B158E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B158E
12.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B158E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B158E | 1.00 | 12.47 | 1.68 | 12.47 |
| #FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#123B54
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3b158e; /* rgb */ color: rgb(59, 21, 142); /* oklch */ color: oklch(34.6% 0.178 287.0);
Tailwind
colors: {
custom: {
50: '#7c59b0',
500: '#3b158e',
950: '#000000',
},
}SCSS
$custom: #3b158e; $custom-light: #7c59b0; $custom-dark: #000000;
JSON
{
"hex": "#3b158e",
"rgb": {
"r": 59,
"g": 21,
"b": 142
},
"hsl": {
"h": 258.843,
"s": 74.233,
"l": 31.961
},
"oklch": {
"l": 0.34613,
"c": 0.17761,
"h": 287
},
"luminance": 0.03419
}Semantic roles & 50–950 ramp
primary
#3B158E
secondary
#98C23D
accent
#F137B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980