#2C1A76#2C1A76
#2C1A76 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.146 H 282.8°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1A76 |
|---|---|
| RGB | rgb(44, 26, 118) |
| HSL | hsl(252, 64%, 28%) |
| HSV | hsv(252, 78%, 46%) |
| CMYK | cmyk(62.7%, 78%, 0%, 53.7%) |
| CIE-LAB | lab(18.29, 35.44, -49.40) |
| CIE-LCH | lch(18.29, 60.80, 305.66°) |
| OKLab | oklab(31.12% 0.0324 -0.1424) |
| OKLCH | oklch(31.12% 0.146 282.8) |
| XYZ | xyz(4.6771, 2.5819, 17.3879) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.64
Indigo (survey)
#380282
ΔE00 4.64
Royal
#0C1793
ΔE00 5.15
Dark Royal Blue
#02066F
ΔE00 5.17
Deep Blue
#040273
ΔE00 5.48
Darkblue (survey)
#030764
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1A76 #64761A
analogous
#1A3676 #2C1A76 #5A1A76
triadic
#2C1A76 #762C1A #1A762C
tetradic
#2C1A76 #761A36 #64761A #1A765A
square
#2C1A76 #761A36 #64761A #1A765A
split-complementary
#2C1A76 #765A1A #36761A
monochromatic
#090619 #190F44 #2C1A76 #3F25A8 #5637D3
Accessibility & contrast
On white
13.85
#2C1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2C1A76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1A76
13.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1A76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1A76 | 1.00 | 13.85 | 1.52 | 13.85 |
| #FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2c1a76; /* rgb */ color: rgb(44, 26, 118); /* oklch */ color: oklch(31.1% 0.146 282.8);
Tailwind
colors: {
custom: {
50: '#6f599e',
500: '#2c1a76',
950: '#000000',
},
}SCSS
$custom: #2c1a76; $custom-light: #6f599e; $custom-dark: #000000;
JSON
{
"hex": "#2c1a76",
"rgb": {
"r": 44,
"g": 26,
"b": 118
},
"hsl": {
"h": 251.739,
"s": 63.889,
"l": 28.235
},
"oklch": {
"l": 0.31123,
"c": 0.14604,
"h": 282.8
},
"luminance": 0.02582
}Semantic roles & 50–950 ramp
primary
#2C1A76
secondary
#96AB41
accent
#E741C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E