#2C1A82#2C1A82
#2C1A82 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.161 H 280.4°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1A82 |
|---|---|
| RGB | rgb(44, 26, 130) |
| HSL | hsl(250, 67%, 31%) |
| HSV | hsv(250, 80%, 51%) |
| CMYK | cmyk(66.2%, 80%, 0%, 49%) |
| CIE-LAB | lab(19.58, 39.28, -54.91) |
| CIE-LCH | lch(19.58, 67.52, 305.58°) |
| OKLab | oklab(32.42% 0.0291 -0.1585) |
| OKLCH | oklch(32.42% 0.161 280.4) |
| XYZ | xyz(5.4361, 2.8855, 21.3853) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.50
Midnight Blue
#191970
ΔE00 3.67
Indigo (survey)
#380282
ΔE00 4.04
Darkblue
#00008B
ΔE00 5.07
Navy
#000080
ΔE00 5.26
Dark Royal Blue
#02066F
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1A82 #70821A
analogous
#1A3C82 #2C1A82 #601A82
triadic
#2C1A82 #822C1A #1A822C
tetradic
#2C1A82 #821A3C #70821A #1A8260
square
#2C1A82 #821A3C #70821A #1A8260
split-complementary
#2C1A82 #82601A #3C821A
monochromatic
#09061C #1B104F #2C1A82 #3D24B5 #593ED8
Accessibility & contrast
On white
13.31
#2C1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2C1A82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1A82
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1A82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1A82 | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1a82; /* rgb */ color: rgb(44, 26, 130); /* oklch */ color: oklch(32.4% 0.161 280.4);
Tailwind
colors: {
custom: {
50: '#725aa7',
500: '#2c1a82',
950: '#000000',
},
}SCSS
$custom: #2c1a82; $custom-light: #725aa7; $custom-dark: #000000;
JSON
{
"hex": "#2c1a82",
"rgb": {
"r": 44,
"g": 26,
"b": 130
},
"hsl": {
"h": 250.385,
"s": 66.667,
"l": 30.588
},
"oklch": {
"l": 0.32418,
"c": 0.16114,
"h": 280.4
},
"luminance": 0.02886
}Semantic roles & 50–950 ramp
primary
#2C1A82
secondary
#A2B642
accent
#EA3ECC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F