#3C188F#3C188F
#3C188F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.176 H 287.0°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #3C188F |
|---|---|
| RGB | rgb(60, 24, 143) |
| HSL | hsl(258, 71%, 33%) |
| HSV | hsv(258, 83%, 56%) |
| CMYK | cmyk(58%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(22.29, 45.99, -58.54) |
| CIE-LCH | lch(22.29, 74.44, 308.16°) |
| OKLab | oklab(35.11% 0.0515 -0.1685) |
| OKLCH | oklch(35.11% 0.176 287) |
| XYZ | xyz(7.1466, 3.5967, 26.2989) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.53
Indigo
#4B0082
ΔE00 4.46
Royal
#0C1793
ΔE00 4.53
Indigo Blue
#3A18B1
ΔE00 4.73
Cobalt Blue
#030AA7
ΔE00 5.31
Ultramarine
#2000B1
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C188F #6B8F18
analogous
#18308F #3C188F #77188F
triadic
#3C188F #8F3C18 #188F3C
tetradic
#3C188F #8F1830 #6B8F18 #188F77
square
#3C188F #8F1830 #6B8F18 #188F77
split-complementary
#3C188F #8F7718 #308F18
monochromatic
#100626 #260F5B #3C188F #5221C3 #7242DF
Accessibility & contrast
On white
12.21
#3C188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3C188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C188F
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C188F | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#143C55
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3c188f; /* rgb */ color: rgb(60, 24, 143); /* oklch */ color: oklch(35.1% 0.176 287.0);
Tailwind
colors: {
custom: {
50: '#7d5bb1',
500: '#3c188f',
950: '#000000',
},
}SCSS
$custom: #3c188f; $custom-light: #7d5bb1; $custom-dark: #000000;
JSON
{
"hex": "#3c188f",
"rgb": {
"r": 60,
"g": 24,
"b": 143
},
"hsl": {
"h": 258.151,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.35113,
"c": 0.17625,
"h": 287
},
"luminance": 0.03597
}Semantic roles & 50–950 ramp
primary
#3C188F
secondary
#9AC043
accent
#EE3AB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980