#2C1578#2C1578
#2C1578 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.154 H 283.3°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1578 |
|---|---|
| RGB | rgb(44, 21, 120) |
| HSL | hsl(254, 70%, 28%) |
| HSV | hsv(254, 83%, 47%) |
| CMYK | cmyk(63.3%, 82.5%, 0%, 52.9%) |
| CIE-LAB | lab(17.59, 38.70, -51.83) |
| CIE-LCH | lch(17.59, 64.68, 306.75°) |
| OKLab | oklab(30.7% 0.0352 -0.1494) |
| OKLCH | oklch(30.7% 0.154 283.3) |
| XYZ | xyz(4.6960, 2.4275, 17.9868) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.18
Indigo (survey)
#380282
ΔE00 3.53
Dark Royal Blue
#02066F
ΔE00 4.54
Deep Blue
#040273
ΔE00 4.66
Royal
#0C1793
ΔE00 4.81
Navy
#000080
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1578 #617815
analogous
#153078 #2C1578 #5D1578
triadic
#2C1578 #782C15 #15782C
tetradic
#2C1578 #781530 #617815 #15785D
square
#2C1578 #781530 #617815 #15785D
split-complementary
#2C1578 #785D15 #307815
monochromatic
#0A051A #190C44 #2C1578 #3F1EAC #552DDA
Accessibility & contrast
On white
14.14
#2C1578 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2C1578 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1578
14.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1578 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1578 | 1.00 | 14.14 | 1.49 | 14.14 |
| #FFFFFF | 14.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c1578; /* rgb */ color: rgb(44, 21, 120); /* oklch */ color: oklch(30.7% 0.154 283.3);
Tailwind
colors: {
custom: {
50: '#7056a0',
500: '#2c1578',
950: '#000000',
},
}SCSS
$custom: #2c1578; $custom-light: #7056a0; $custom-dark: #000000;
JSON
{
"hex": "#2c1578",
"rgb": {
"r": 44,
"g": 21,
"b": 120
},
"hsl": {
"h": 253.939,
"s": 70.213,
"l": 27.647
},
"oklch": {
"l": 0.307,
"c": 0.15355,
"h": 283.3
},
"luminance": 0.02428
}Semantic roles & 50–950 ramp
primary
#2C1578
secondary
#93AE3B
accent
#ED3BC4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F