#2C1A7E#2C1A7E
#2C1A7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.156 H 281.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1A7E |
|---|---|
| RGB | rgb(44, 26, 126) |
| HSL | hsl(251, 66%, 30%) |
| HSV | hsv(251, 79%, 49%) |
| CMYK | cmyk(65.1%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(19.14, 38.01, -53.10) |
| CIE-LCH | lch(19.14, 65.30, 305.60°) |
| OKLab | oklab(31.98% 0.0302 -0.1532) |
| OKLCH | oklch(31.98% 0.156 281.2) |
| XYZ | xyz(5.1728, 2.7802, 19.9987) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.24
Royal
#0C1793
ΔE00 4.00
Indigo (survey)
#380282
ΔE00 4.14
Darkblue
#00008B
ΔE00 5.33
Navy
#000080
ΔE00 5.34
Dark Royal Blue
#02066F
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1A7E #6C7E1A
analogous
#1A3A7E #2C1A7E #5E1A7E
triadic
#2C1A7E #7E2C1A #1A7E2C
tetradic
#2C1A7E #7E1A3A #6C7E1A #1A7E5E
square
#2C1A7E #7E1A3A #6C7E1A #1A7E5E
split-complementary
#2C1A7E #7E5E1A #3A7E1A
monochromatic
#090519 #1A104B #2C1A7E #3E24B1 #583CD7
Accessibility & contrast
On white
13.49
#2C1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2C1A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1A7E
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1A7E | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2c1a7e; /* rgb */ color: rgb(44, 26, 126); /* oklch */ color: oklch(32.0% 0.156 281.2);
Tailwind
colors: {
custom: {
50: '#7159a4',
500: '#2c1a7e',
950: '#000000',
},
}SCSS
$custom: #2c1a7e; $custom-light: #7159a4; $custom-dark: #000000;
JSON
{
"hex": "#2c1a7e",
"rgb": {
"r": 44,
"g": 26,
"b": 126
},
"hsl": {
"h": 250.8,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.31981,
"c": 0.15616,
"h": 281.2
},
"luminance": 0.02781
}Semantic roles & 50–950 ramp
primary
#2C1A7E
secondary
#9EB242
accent
#E93FCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F