#3C198E#3C198E
#3C198E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.174 H 287.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).
Color values
| HEX | #3C198E |
|---|---|
| RGB | rgb(60, 25, 142) |
| HSL | hsl(258, 70%, 33%) |
| HSV | hsv(258, 82%, 56%) |
| CMYK | cmyk(57.7%, 82.4%, 0%, 44.3%) |
| CIE-LAB | lab(22.33, 45.27, -57.84) |
| CIE-LCH | lch(22.33, 73.45, 308.05°) |
| OKLab | oklab(35.11% 0.0513 -0.1665) |
| OKLCH | oklch(35.11% 0.174 287.1) |
| XYZ | xyz(7.0921, 3.6085, 25.9087) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.60
Indigo
#4B0082
ΔE00 4.50
Royal
#0C1793
ΔE00 4.57
Indigo Blue
#3A18B1
ΔE00 4.87
Cobalt Blue
#030AA7
ΔE00 5.47
Ultramarine
#2000B1
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C198E #6B8E19
analogous
#19308E #3C198E #77198E
triadic
#3C198E #8E3C19 #198E3C
tetradic
#3C198E #8E1930 #6B8E19 #198E77
square
#3C198E #8E1930 #6B8E19 #198E77
split-complementary
#3C198E #8E7719 #308E19
monochromatic
#100726 #26105A #3C198E #5222C2 #7243DE
Accessibility & contrast
On white
12.20
#3C198E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3C198E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C198E
12.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C198E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C198E | 1.00 | 12.20 | 1.72 | 12.20 |
| #FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#153C54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3c198e; /* rgb */ color: rgb(60, 25, 142); /* oklch */ color: oklch(35.1% 0.174 287.1);
Tailwind
colors: {
custom: {
50: '#7c5bb0',
500: '#3c198e',
950: '#000000',
},
}SCSS
$custom: #3c198e; $custom-light: #7c5bb0; $custom-dark: #000000;
JSON
{
"hex": "#3c198e",
"rgb": {
"r": 60,
"g": 25,
"b": 142
},
"hsl": {
"h": 257.949,
"s": 70.06,
"l": 32.745
},
"oklch": {
"l": 0.3511,
"c": 0.17426,
"h": 287.1
},
"luminance": 0.03609
}Semantic roles & 50–950 ramp
primary
#3C198E
secondary
#9ABF44
accent
#ED3BB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980