#2C1780#2C1780
#2C1780 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.161 H 281.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1780 |
|---|---|
| RGB | rgb(44, 23, 128) |
| HSL | hsl(252, 70%, 30%) |
| HSV | hsv(252, 82%, 50%) |
| CMYK | cmyk(65.6%, 82%, 0%, 49.8%) |
| CIE-LAB | lab(18.83, 40.18, -54.89) |
| CIE-LCH | lch(18.83, 68.02, 306.21°) |
| OKLab | oklab(31.83% 0.0315 -0.1584) |
| OKLCH | oklch(31.83% 0.161 281.2) |
| XYZ | xyz(5.2402, 2.7064, 20.6641) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.49
Midnight Blue
#191970
ΔE00 3.64
Royal
#0C1793
ΔE00 3.71
Darkblue
#00008B
ΔE00 4.72
Navy
#000080
ΔE00 4.80
Dark Royal Blue
#02066F
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1780 #6B8017
analogous
#173780 #2C1780 #611780
triadic
#2C1780 #802C17 #17802C
tetradic
#2C1780 #801737 #6B8017 #178061
square
#2C1780 #801737 #6B8017 #178061
split-complementary
#2C1780 #806117 #378017
monochromatic
#09051A #1A0E4C #2C1780 #3E20B4 #5736DB
Accessibility & contrast
On white
13.62
#2C1780 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2C1780 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1780
13.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1780 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1780 | 1.00 | 13.62 | 1.54 | 13.62 |
| #FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2c1780; /* rgb */ color: rgb(44, 23, 128); /* oklch */ color: oklch(31.8% 0.161 281.2);
Tailwind
colors: {
custom: {
50: '#7258a6',
500: '#2c1780',
950: '#000000',
},
}SCSS
$custom: #2c1780; $custom-light: #7258a6; $custom-dark: #000000;
JSON
{
"hex": "#2c1780",
"rgb": {
"r": 44,
"g": 23,
"b": 128
},
"hsl": {
"h": 252,
"s": 69.536,
"l": 29.608
},
"oklch": {
"l": 0.31828,
"c": 0.16148,
"h": 281.2
},
"luminance": 0.02707
}Semantic roles & 50–950 ramp
primary
#2C1780
secondary
#9DB43E
accent
#EC3BC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F