#2C1577#2C1577
#2C1577 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.152 H 283.5°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1577 |
|---|---|
| RGB | rgb(44, 21, 119) |
| HSL | hsl(254, 70%, 27%) |
| HSV | hsv(254, 82%, 47%) |
| CMYK | cmyk(63%, 82.4%, 0%, 53.3%) |
| CIE-LAB | lab(17.48, 38.39, -51.37) |
| CIE-LCH | lch(17.48, 64.13, 306.77°) |
| OKLab | oklab(30.59% 0.0356 -0.1481) |
| OKLCH | oklch(30.59% 0.152 283.5) |
| XYZ | xyz(4.6356, 2.4034, 17.6688) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.13
Indigo (survey)
#380282
ΔE00 3.61
Dark Royal Blue
#02066F
ΔE00 4.52
Deep Blue
#040273
ΔE00 4.66
Navy
#000080
ΔE00 4.90
Royal
#0C1793
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1577 #607715
analogous
#152F77 #2C1577 #5D1577
triadic
#2C1577 #772C15 #15772C
tetradic
#2C1577 #77152F #607715 #15775D
square
#2C1577 #77152F #607715 #15775D
split-complementary
#2C1577 #775D15 #2F7715
monochromatic
#0A051A #190C43 #2C1577 #3F1EAB #552DDA
Accessibility & contrast
On white
14.18
#2C1577 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2C1577 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1577
14.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1577 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1577 | 1.00 | 14.18 | 1.48 | 14.18 |
| #FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c1577; /* rgb */ color: rgb(44, 21, 119); /* oklch */ color: oklch(30.6% 0.152 283.5);
Tailwind
colors: {
custom: {
50: '#70569f',
500: '#2c1577',
950: '#000000',
},
}SCSS
$custom: #2c1577; $custom-light: #70569f; $custom-dark: #000000;
JSON
{
"hex": "#2c1577",
"rgb": {
"r": 44,
"g": 21,
"b": 119
},
"hsl": {
"h": 254.082,
"s": 70,
"l": 27.451
},
"oklch": {
"l": 0.30589,
"c": 0.15232,
"h": 283.5
},
"luminance": 0.02404
}Semantic roles & 50–950 ramp
primary
#2C1577
secondary
#92AD3B
accent
#ED3BC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E