#3B197F#3B197F
#3B197F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.157 H 290.4°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #3B197F |
|---|---|
| RGB | rgb(59, 25, 127) |
| HSL | hsl(260, 67%, 30%) |
| HSV | hsv(260, 80%, 50%) |
| CMYK | cmyk(53.5%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(20.66, 40.85, -51.17) |
| CIE-LCH | lch(20.66, 65.48, 308.60°) |
| OKLab | oklab(33.46% 0.0546 -0.1471) |
| OKLCH | oklch(33.46% 0.157 290.4) |
| XYZ | xyz(5.9809, 3.1571, 20.3688) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.28
Indigo
#4B0082
ΔE00 4.11
Midnight Blue
#191970
ΔE00 5.30
Royal
#0C1793
ΔE00 5.61
Royal Purple (survey)
#4B006E
ΔE00 5.80
Darkblue
#00008B
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B197F #5D7F19
analogous
#192A7F #3B197F #6E197F
triadic
#3B197F #7F3B19 #197F3B
tetradic
#3B197F #7F192A #5D7F19 #197F6E
square
#3B197F #7F192A #5D7F19 #197F6E
split-complementary
#3B197F #7F6E19 #2A7F19
monochromatic
#0C051A #230F4C #3B197F #5323B2 #6F3AD8
Accessibility & contrast
On white
12.87
#3B197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3B197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B197F
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B197F | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#22364C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3b197f; /* rgb */ color: rgb(59, 25, 127); /* oklch */ color: oklch(33.5% 0.157 290.4);
Tailwind
colors: {
custom: {
50: '#795aa5',
500: '#3b197f',
950: '#000000',
},
}SCSS
$custom: #3b197f; $custom-light: #795aa5; $custom-dark: #000000;
JSON
{
"hex": "#3b197f",
"rgb": {
"r": 59,
"g": 25,
"b": 127
},
"hsl": {
"h": 260,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.33456,
"c": 0.1569,
"h": 290.4
},
"luminance": 0.03157
}Semantic roles & 50–950 ramp
primary
#3B197F
secondary
#8DB341
accent
#EA3EB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F