#2C1580#2C1580
#2C1580 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.163 H 281.5°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1580 |
|---|---|
| RGB | rgb(44, 21, 128) |
| HSL | hsl(253, 72%, 29%) |
| HSV | hsv(253, 84%, 50%) |
| CMYK | cmyk(65.6%, 83.6%, 0%, 49.8%) |
| CIE-LAB | lab(18.50, 41.15, -55.43) |
| CIE-LCH | lch(18.50, 69.04, 306.58°) |
| OKLab | oklab(31.6% 0.0326 -0.1599) |
| OKLCH | oklch(31.6% 0.163 281.5) |
| XYZ | xyz(5.2019, 2.6299, 20.6514) |
| Luminance | 0.0263 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.14
Royal
#0C1793
ΔE00 3.75
Midnight Blue
#191970
ΔE00 3.82
Darkblue
#00008B
ΔE00 4.45
Navy
#000080
ΔE00 4.51
Deep Blue
#040273
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1580 #698015
analogous
#153480 #2C1580 #621580
triadic
#2C1580 #802C15 #15802C
tetradic
#2C1580 #801534 #698015 #158062
square
#2C1580 #801534 #698015 #158062
split-complementary
#2C1580 #806215 #348015
monochromatic
#09041A #1A0C4B #2C1580 #3E1EB5 #5732DD
Accessibility & contrast
On white
13.76
#2C1580 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2C1580 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1580
13.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1580 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1580 | 1.00 | 13.76 | 1.53 | 13.76 |
| #FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2c1580; /* rgb */ color: rgb(44, 21, 128); /* oklch */ color: oklch(31.6% 0.163 281.5);
Tailwind
colors: {
custom: {
50: '#7257a6',
500: '#2c1580',
950: '#000000',
},
}SCSS
$custom: #2c1580; $custom-light: #7257a6; $custom-dark: #000000;
JSON
{
"hex": "#2c1580",
"rgb": {
"r": 44,
"g": 21,
"b": 128
},
"hsl": {
"h": 252.897,
"s": 71.812,
"l": 29.216
},
"oklch": {
"l": 0.31599,
"c": 0.16323,
"h": 281.5
},
"luminance": 0.0263
}Semantic roles & 50–950 ramp
primary
#2C1580
secondary
#9BB53C
accent
#EF39C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F