#3C188E#3C188E
#3C188E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.175 H 287.2°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #3C188E |
|---|---|
| RGB | rgb(60, 24, 142) |
| HSL | hsl(258, 71%, 33%) |
| HSV | hsv(258, 83%, 56%) |
| CMYK | cmyk(57.7%, 83.1%, 0%, 44.3%) |
| CIE-LAB | lab(22.18, 45.71, -58.09) |
| CIE-LCH | lch(22.18, 73.92, 308.20°) |
| OKLab | oklab(35.01% 0.0519 -0.1672) |
| OKLCH | oklch(35.01% 0.175 287.2) |
| XYZ | xyz(7.0711, 3.5665, 25.9017) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.45
Indigo
#4B0082
ΔE00 4.38
Royal
#0C1793
ΔE00 4.57
Indigo Blue
#3A18B1
ΔE00 4.88
Cobalt Blue
#030AA7
ΔE00 5.41
Ultramarine
#2000B1
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C188E #6A8E18
analogous
#182F8E #3C188E #77188E
triadic
#3C188E #8E3C18 #188E3C
tetradic
#3C188E #8E182F #6A8E18 #188E77
square
#3C188E #8E182F #6A8E18 #188E77
split-complementary
#3C188E #8E7718 #2F8E18
monochromatic
#100625 #260F5A #3C188E #5221C2 #7141DF
Accessibility & contrast
On white
12.26
#3C188E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3C188E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C188E
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C188E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C188E | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 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: #3c188e; /* rgb */ color: rgb(60, 24, 142); /* oklch */ color: oklch(35.0% 0.175 287.2);
Tailwind
colors: {
custom: {
50: '#7c5bb0',
500: '#3c188e',
950: '#000000',
},
}SCSS
$custom: #3c188e; $custom-light: #7c5bb0; $custom-dark: #000000;
JSON
{
"hex": "#3c188e",
"rgb": {
"r": 60,
"g": 24,
"b": 142
},
"hsl": {
"h": 258.305,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.35007,
"c": 0.17511,
"h": 287.2
},
"luminance": 0.03567
}Semantic roles & 50–950 ramp
primary
#3C188E
secondary
#99C042
accent
#EE3AB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980