#3A198F#3A198F
#3A198F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.176 H 285.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #3A198F |
|---|---|
| RGB | rgb(58, 25, 143) |
| HSL | hsl(257, 70%, 33%) |
| HSV | hsv(257, 83%, 56%) |
| CMYK | cmyk(59.4%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(22.22, 45.32, -58.66) |
| CIE-LCH | lch(22.22, 74.12, 307.69°) |
| OKLab | oklab(35.02% 0.0477 -0.169) |
| OKLCH | oklch(35.02% 0.176 285.8) |
| XYZ | xyz(7.0490, 3.5775, 26.3004) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.67
Royal
#0C1793
ΔE00 4.24
Indigo Blue
#3A18B1
ΔE00 4.71
Indigo
#4B0082
ΔE00 4.77
Cobalt Blue
#030AA7
ΔE00 5.16
Royal Blue (survey)
#0504AA
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A198F #6E8F19
analogous
#19338F #3A198F #75198F
triadic
#3A198F #8F3A19 #198F3A
tetradic
#3A198F #8F1933 #6E8F19 #198F75
square
#3A198F #8F1933 #6E8F19 #198F75
split-complementary
#3A198F #8F7519 #338F19
monochromatic
#100727 #25105B #3A198F #4F22C3 #6F44DE
Accessibility & contrast
On white
12.24
#3A198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3A198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A198F
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A198F | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#0B3D55
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3a198f; /* rgb */ color: rgb(58, 25, 143); /* oklch */ color: oklch(35.0% 0.176 285.8);
Tailwind
colors: {
custom: {
50: '#7b5bb1',
500: '#3a198f',
950: '#000000',
},
}SCSS
$custom: #3a198f; $custom-light: #7b5bb1; $custom-dark: #000000;
JSON
{
"hex": "#3a198f",
"rgb": {
"r": 58,
"g": 25,
"b": 143
},
"hsl": {
"h": 256.78,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.35015,
"c": 0.17558,
"h": 285.8
},
"luminance": 0.03578
}Semantic roles & 50–950 ramp
primary
#3A198F
secondary
#9DBF44
accent
#ED3BBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980