#3B198A#3B198A
#3B198A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.170 H 287.5°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #3B198A |
|---|---|
| RGB | rgb(59, 25, 138) |
| HSL | hsl(258, 69%, 32%) |
| HSV | hsv(258, 82%, 54%) |
| CMYK | cmyk(57.2%, 81.9%, 0%, 45.9%) |
| CIE-LAB | lab(21.80, 44.00, -56.23) |
| CIE-LCH | lch(21.80, 71.40, 308.05°) |
| OKLab | oklab(34.59% 0.051 -0.1619) |
| OKLCH | oklch(34.59% 0.17 287.5) |
| XYZ | xyz(6.7373, 3.4597, 24.3526) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.35
Indigo
#4B0082
ΔE00 4.36
Royal
#0C1793
ΔE00 4.63
Indigo Blue
#3A18B1
ΔE00 5.47
Cobalt Blue
#030AA7
ΔE00 5.80
Darkblue
#00008B
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B198A #688A19
analogous
#19308A #3B198A #74198A
triadic
#3B198A #8A3B19 #198A3B
tetradic
#3B198A #8A1930 #688A19 #198A74
square
#3B198A #8A1930 #688A19 #198A74
split-complementary
#3B198A #8A7419 #308A19
monochromatic
#0F0622 #251056 #3B198A #5122BE #7041DD
Accessibility & contrast
On white
12.41
#3B198A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#3B198A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B198A
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B198A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B198A | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#173B52
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3b198a; /* rgb */ color: rgb(59, 25, 138); /* oklch */ color: oklch(34.6% 0.170 287.5);
Tailwind
colors: {
custom: {
50: '#7b5bad',
500: '#3b198a',
950: '#000000',
},
}SCSS
$custom: #3b198a; $custom-light: #7b5bad; $custom-dark: #000000;
JSON
{
"hex": "#3b198a",
"rgb": {
"r": 59,
"g": 25,
"b": 138
},
"hsl": {
"h": 258.053,
"s": 69.325,
"l": 31.961
},
"oklch": {
"l": 0.34588,
"c": 0.16972,
"h": 287.5
},
"luminance": 0.0346
}Semantic roles & 50–950 ramp
primary
#3B198A
secondary
#98BD42
accent
#EC3CB7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F