#2C1786#2C1786
#2C1786 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.169 H 280.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1786 |
|---|---|
| RGB | rgb(44, 23, 134) |
| HSL | hsl(251, 71%, 31%) |
| HSV | hsv(251, 83%, 53%) |
| CMYK | cmyk(67.2%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(19.51, 42.03, -57.55) |
| CIE-LCH | lch(19.51, 71.26, 306.14°) |
| OKLab | oklab(32.51% 0.0295 -0.1661) |
| OKLCH | oklch(32.51% 0.169 280.1) |
| XYZ | xyz(5.6468, 2.8690, 22.8058) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.05
Indigo (survey)
#380282
ΔE00 3.48
Midnight Blue
#191970
ΔE00 4.31
Darkblue
#00008B
ΔE00 4.43
Navy
#000080
ΔE00 4.80
Cobalt Blue
#030AA7
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1786 #718617
analogous
#173986 #2C1786 #631786
triadic
#2C1786 #862C17 #17862C
tetradic
#2C1786 #861739 #718617 #178663
square
#2C1786 #861739 #718617 #178663
split-complementary
#2C1786 #866317 #398617
monochromatic
#0A051E #1B0E52 #2C1786 #3D20BA #593ADD
Accessibility & contrast
On white
13.34
#2C1786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2C1786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1786
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1786 | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1786; /* rgb */ color: rgb(44, 23, 134); /* oklch */ color: oklch(32.5% 0.169 280.1);
Tailwind
colors: {
custom: {
50: '#7358aa',
500: '#2c1786',
950: '#000000',
},
}SCSS
$custom: #2c1786; $custom-light: #7358aa; $custom-dark: #000000;
JSON
{
"hex": "#2c1786",
"rgb": {
"r": 44,
"g": 23,
"b": 134
},
"hsl": {
"h": 251.351,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.32505,
"c": 0.16873,
"h": 280.1
},
"luminance": 0.02869
}Semantic roles & 50–950 ramp
primary
#2C1786
secondary
#A3BA3F
accent
#ED3ACC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F