#2C1A80#2C1A80
#2C1A80 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 280.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1A80 |
|---|---|
| RGB | rgb(44, 26, 128) |
| HSL | hsl(251, 66%, 30%) |
| HSV | hsv(251, 80%, 50%) |
| CMYK | cmyk(65.6%, 79.7%, 0%, 49.8%) |
| CIE-LAB | lab(19.36, 38.65, -54.01) |
| CIE-LCH | lch(19.36, 66.41, 305.59°) |
| OKLab | oklab(32.2% 0.0296 -0.1559) |
| OKLCH | oklch(32.2% 0.159 280.8) |
| XYZ | xyz(5.3032, 2.8324, 20.6851) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.45
Royal
#0C1793
ΔE00 3.74
Indigo (survey)
#380282
ΔE00 4.07
Darkblue
#00008B
ΔE00 5.19
Navy
#000080
ΔE00 5.29
Dark Royal Blue
#02066F
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1A80 #6E801A
analogous
#1A3B80 #2C1A80 #5F1A80
triadic
#2C1A80 #802C1A #1A802C
tetradic
#2C1A80 #801A3B #6E801A #1A805F
square
#2C1A80 #801A3B #6E801A #1A805F
split-complementary
#2C1A80 #805F1A #3B801A
monochromatic
#09051A #1B104D #2C1A80 #3D24B3 #583DD8
Accessibility & contrast
On white
13.40
#2C1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2C1A80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1A80
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1A80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1A80 | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1a80; /* rgb */ color: rgb(44, 26, 128); /* oklch */ color: oklch(32.2% 0.159 280.8);
Tailwind
colors: {
custom: {
50: '#725aa6',
500: '#2c1a80',
950: '#000000',
},
}SCSS
$custom: #2c1a80; $custom-light: #725aa6; $custom-dark: #000000;
JSON
{
"hex": "#2c1a80",
"rgb": {
"r": 44,
"g": 26,
"b": 128
},
"hsl": {
"h": 250.588,
"s": 66.234,
"l": 30.196
},
"oklch": {
"l": 0.32199,
"c": 0.15865,
"h": 280.8
},
"luminance": 0.02833
}Semantic roles & 50–950 ramp
primary
#2C1A80
secondary
#A0B442
accent
#E93FCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F