#3C168A#3C168A
#3C168A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.172 H 288.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #3C168A |
|---|---|
| RGB | rgb(60, 22, 138) |
| HSL | hsl(260, 73%, 31%) |
| HSV | hsv(260, 84%, 54%) |
| CMYK | cmyk(56.5%, 84.1%, 0%, 45.9%) |
| CIE-LAB | lab(21.47, 45.43, -56.78) |
| CIE-LCH | lch(21.47, 72.72, 308.67°) |
| OKLab | oklab(34.38% 0.0546 -0.1634) |
| OKLCH | oklch(34.38% 0.172 288.5) |
| XYZ | xyz(6.7365, 3.3691, 24.3352) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.87
Indigo
#4B0082
ΔE00 3.89
Royal
#0C1793
ΔE00 4.79
Indigo Blue
#3A18B1
ΔE00 5.52
Cobalt Blue
#030AA7
ΔE00 5.75
Darkblue
#00008B
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C168A #648A16
analogous
#162A8A #3C168A #76168A
triadic
#3C168A #8A3C16 #168A3C
tetradic
#3C168A #8A162A #648A16 #168A76
square
#3C168A #8A162A #648A16 #168A76
split-complementary
#3C168A #8A7616 #2A8A16
monochromatic
#0E0520 #250E55 #3C168A #531EBF #713BE0
Accessibility & contrast
On white
12.55
#3C168A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#3C168A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C168A
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C168A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C168A | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#1B3951
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3c168a; /* rgb */ color: rgb(60, 22, 138); /* oklch */ color: oklch(34.4% 0.172 288.5);
Tailwind
colors: {
custom: {
50: '#7c5aad',
500: '#3c168a',
950: '#000000',
},
}SCSS
$custom: #3c168a; $custom-light: #7c5aad; $custom-dark: #000000;
JSON
{
"hex": "#3c168a",
"rgb": {
"r": 60,
"g": 22,
"b": 138
},
"hsl": {
"h": 259.655,
"s": 72.5,
"l": 31.373
},
"oklch": {
"l": 0.34384,
"c": 0.17227,
"h": 288.5
},
"luminance": 0.03369
}Semantic roles & 50–950 ramp
primary
#3C168A
secondary
#94BE3E
accent
#EF39B3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F