#3B158F#3B158F
#3B158F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.7% C 0.179 H 286.8°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).
Color values
| HEX | #3B158F |
|---|---|
| RGB | rgb(59, 21, 143) |
| HSL | hsl(259, 74%, 32%) |
| HSV | hsv(259, 85%, 56%) |
| CMYK | cmyk(58.7%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(21.76, 47.11, -59.42) |
| CIE-LCH | lch(21.76, 75.83, 308.41°) |
| OKLab | oklab(34.72% 0.0516 -0.1711) |
| OKLCH | oklch(34.72% 0.179 286.8) |
| XYZ | xyz(7.0282, 3.4489, 26.2766) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.12
Indigo
#4B0082
ΔE00 4.25
Royal
#0C1793
ΔE00 4.42
Indigo Blue
#3A18B1
ΔE00 4.78
Cobalt Blue
#030AA7
ΔE00 5.07
Ultramarine
#2000B1
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B158F #698F15
analogous
#152C8F #3B158F #78158F
triadic
#3B158F #8F3B15 #158F3B
tetradic
#3B158F #8F152C #698F15 #158F78
square
#3B158F #8F152C #698F15 #158F78
split-complementary
#3B158F #8F7815 #2C8F15
monochromatic
#0F0524 #250D5A #3B158F #511DC4 #703CE2
Accessibility & contrast
On white
12.43
#3B158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#3B158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B158F
12.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B158F | 1.00 | 12.43 | 1.69 | 12.43 |
| #FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#103B54
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3b158f; /* rgb */ color: rgb(59, 21, 143); /* oklch */ color: oklch(34.7% 0.179 286.8);
Tailwind
colors: {
custom: {
50: '#7c59b1',
500: '#3b158f',
950: '#000000',
},
}SCSS
$custom: #3b158f; $custom-light: #7c59b1; $custom-dark: #000000;
JSON
{
"hex": "#3b158f",
"rgb": {
"r": 59,
"g": 21,
"b": 143
},
"hsl": {
"h": 258.689,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.34721,
"c": 0.17874,
"h": 286.8
},
"luminance": 0.03449
}Semantic roles & 50–950 ramp
primary
#3B158F
secondary
#99C23E
accent
#F137B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980