#3D198F#3D198F
#3D198F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.175 H 287.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #3D198F |
|---|---|
| RGB | rgb(61, 25, 143) |
| HSL | hsl(258, 70%, 33%) |
| HSV | hsv(258, 83%, 56%) |
| CMYK | cmyk(57.3%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(22.55, 45.68, -58.10) |
| CIE-LCH | lch(22.55, 73.91, 308.17°) |
| OKLab | oklab(35.32% 0.0525 -0.1673) |
| OKLCH | oklch(35.32% 0.175 287.4) |
| XYZ | xyz(7.2285, 3.6701, 26.3088) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.68
Indigo
#4B0082
ΔE00 4.48
Royal
#0C1793
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 4.74
Cobalt Blue
#030AA7
ΔE00 5.48
Ultramarine
#2000B1
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D198F #6B8F19
analogous
#19308F #3D198F #78198F
triadic
#3D198F #8F3D19 #198F3D
tetradic
#3D198F #8F1930 #6B8F19 #198F78
square
#3D198F #8F1930 #6B8F19 #198F78
split-complementary
#3D198F #8F7819 #308F19
monochromatic
#110727 #27105B #3D198F #5322C3 #7344DE
Accessibility & contrast
On white
12.11
#3D198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3D198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D198F
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D198F | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#173D55
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3d198f; /* rgb */ color: rgb(61, 25, 143); /* oklch */ color: oklch(35.3% 0.175 287.4);
Tailwind
colors: {
custom: {
50: '#7d5cb1',
500: '#3d198f',
950: '#000000',
},
}SCSS
$custom: #3d198f; $custom-light: #7d5cb1; $custom-dark: #000000;
JSON
{
"hex": "#3d198f",
"rgb": {
"r": 61,
"g": 25,
"b": 143
},
"hsl": {
"h": 258.305,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.35318,
"c": 0.17533,
"h": 287.4
},
"luminance": 0.03671
}Semantic roles & 50–950 ramp
primary
#3D198F
secondary
#9ABF44
accent
#ED3BB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980