#2C1784#2C1784
#2C1784 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.166 H 280.5°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1784 |
|---|---|
| RGB | rgb(44, 23, 132) |
| HSL | hsl(252, 70%, 30%) |
| HSV | hsv(252, 83%, 52%) |
| CMYK | cmyk(66.7%, 82.6%, 0%, 48.2%) |
| CIE-LAB | lab(19.28, 41.42, -56.67) |
| CIE-LCH | lch(19.28, 70.19, 306.16°) |
| OKLab | oklab(32.28% 0.0302 -0.1636) |
| OKLCH | oklch(32.28% 0.166 280.5) |
| XYZ | xyz(5.5086, 2.8138, 22.0781) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.25
Indigo (survey)
#380282
ΔE00 3.46
Midnight Blue
#191970
ΔE00 4.08
Darkblue
#00008B
ΔE00 4.50
Navy
#000080
ΔE00 4.78
Deep Blue
#040273
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1784 #6F8417
analogous
#173884 #2C1784 #631784
triadic
#2C1784 #842C17 #17842C
tetradic
#2C1784 #841738 #6F8417 #178463
square
#2C1784 #841738 #6F8417 #178463
split-complementary
#2C1784 #846317 #388417
monochromatic
#09051C #1B0E50 #2C1784 #3D20B8 #5839DC
Accessibility & contrast
On white
13.44
#2C1784 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2C1784 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1784
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1784 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1784 | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1784; /* rgb */ color: rgb(44, 23, 132); /* oklch */ color: oklch(32.3% 0.166 280.5);
Tailwind
colors: {
custom: {
50: '#7358a9',
500: '#2c1784',
950: '#000000',
},
}SCSS
$custom: #2c1784; $custom-light: #7358a9; $custom-dark: #000000;
JSON
{
"hex": "#2c1784",
"rgb": {
"r": 44,
"g": 23,
"b": 132
},
"hsl": {
"h": 251.56,
"s": 70.323,
"l": 30.392
},
"oklch": {
"l": 0.32278,
"c": 0.16633,
"h": 280.5
},
"luminance": 0.02814
}Semantic roles & 50–950 ramp
primary
#2C1784
secondary
#A1B83F
accent
#ED3BCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F