#3B147E#3B147E
#3B147E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.160 H 291.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #3B147E |
|---|---|
| RGB | rgb(59, 20, 126) |
| HSL | hsl(262, 73%, 29%) |
| HSV | hsv(262, 84%, 49%) |
| CMYK | cmyk(53.2%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(19.79, 42.81, -51.98) |
| CIE-LCH | lch(19.79, 67.34, 309.47°) |
| OKLab | oklab(32.82% 0.0586 -0.1494) |
| OKLCH | oklch(32.82% 0.16 291.4) |
| XYZ | xyz(5.8186, 2.9362, 19.9948) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.44
Indigo
#4B0082
ΔE00 3.45
Royal Purple (survey)
#4B006E
ΔE00 5.20
Midnight Blue
#191970
ΔE00 5.54
Royal
#0C1793
ΔE00 5.76
Darkblue
#00008B
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B147E #577E14
analogous
#14227E #3B147E #70147E
triadic
#3B147E #7E3B14 #147E3B
tetradic
#3B147E #7E1422 #577E14 #147E70
square
#3B147E #7E1422 #577E14 #147E70
split-complementary
#3B147E #7E7014 #227E14
monochromatic
#0C041A #220C49 #3B147E #541CB3 #6F2EDE
Accessibility & contrast
On white
13.23
#3B147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#3B147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B147E
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B147E | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#23344A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3b147e; /* rgb */ color: rgb(59, 20, 126); /* oklch */ color: oklch(32.8% 0.160 291.4);
Tailwind
colors: {
custom: {
50: '#7958a4',
500: '#3b147e',
950: '#000000',
},
}SCSS
$custom: #3b147e; $custom-light: #7958a4; $custom-dark: #000000;
JSON
{
"hex": "#3b147e",
"rgb": {
"r": 59,
"g": 20,
"b": 126
},
"hsl": {
"h": 262.075,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.32817,
"c": 0.16047,
"h": 291.4
},
"luminance": 0.02936
}Semantic roles & 50–950 ramp
primary
#3B147E
secondary
#87B33A
accent
#EF38AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F