#3B148A#3B148A
#3B148A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.174 H 288.1°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).
Color values
| HEX | #3B148A |
|---|---|
| RGB | rgb(59, 20, 138) |
| HSL | hsl(260, 75%, 31%) |
| HSV | hsv(260, 86%, 54%) |
| CMYK | cmyk(57.2%, 85.5%, 0%, 45.9%) |
| CIE-LAB | lab(21.07, 46.12, -57.43) |
| CIE-LCH | lch(21.07, 73.66, 308.77°) |
| OKLab | oklab(34.09% 0.0541 -0.1653) |
| OKLCH | oklch(34.09% 0.174 288.1) |
| XYZ | xyz(6.6399, 3.2647, 24.3201) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.57
Indigo
#4B0082
ΔE00 3.80
Royal
#0C1793
ΔE00 4.69
Darkblue
#00008B
ΔE00 5.52
Indigo Blue
#3A18B1
ΔE00 5.55
Cobalt Blue
#030AA7
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B148A #638A14
analogous
#14288A #3B148A #76148A
triadic
#3B148A #8A3B14 #148A3B
tetradic
#3B148A #8A1428 #638A14 #148A76
square
#3B148A #8A1428 #638A14 #148A76
split-complementary
#3B148A #8A7614 #288A14
monochromatic
#0D051F #240C55 #3B148A #521CBF #6F36E2
Accessibility & contrast
On white
12.70
#3B148A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3B148A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B148A
12.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B148A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B148A | 1.00 | 12.70 | 1.65 | 12.70 |
| #FFFFFF | 12.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#183951
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3b148a; /* rgb */ color: rgb(59, 20, 138); /* oklch */ color: oklch(34.1% 0.174 288.1);
Tailwind
colors: {
custom: {
50: '#7b59ad',
500: '#3b148a',
950: '#000000',
},
}SCSS
$custom: #3b148a; $custom-light: #7b59ad; $custom-dark: #000000;
JSON
{
"hex": "#3b148a",
"rgb": {
"r": 59,
"g": 20,
"b": 138
},
"hsl": {
"h": 259.831,
"s": 74.684,
"l": 30.98
},
"oklch": {
"l": 0.34089,
"c": 0.17393,
"h": 288.1
},
"luminance": 0.03265
}Semantic roles & 50–950 ramp
primary
#3B148A
secondary
#93BE3C
accent
#F136B4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F