#2C1981#2C1981
#2C1981 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.161 H 280.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1981 |
|---|---|
| RGB | rgb(44, 25, 129) |
| HSL | hsl(251, 68%, 30%) |
| HSV | hsv(251, 81%, 51%) |
| CMYK | cmyk(65.9%, 80.6%, 0%, 49.4%) |
| CIE-LAB | lab(19.29, 39.49, -54.76) |
| CIE-LCH | lch(19.29, 67.51, 305.79°) |
| OKLab | oklab(32.18% 0.03 -0.158) |
| OKLCH | oklch(32.18% 0.161 280.7) |
| XYZ | xyz(5.3475, 2.8153, 21.0262) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.60
Midnight Blue
#191970
ΔE00 3.61
Indigo (survey)
#380282
ΔE00 3.85
Darkblue
#00008B
ΔE00 4.96
Navy
#000080
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1981 #6E8119
analogous
#193A81 #2C1981 #601981
triadic
#2C1981 #812C19 #19812C
tetradic
#2C1981 #81193A #6E8119 #198160
square
#2C1981 #81193A #6E8119 #198160
split-complementary
#2C1981 #816019 #3A8119
monochromatic
#09051A #1B0F4E #2C1981 #3D23B4 #583BD9
Accessibility & contrast
On white
13.43
#2C1981 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2C1981 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1981
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1981 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1981 | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1981; /* rgb */ color: rgb(44, 25, 129); /* oklch */ color: oklch(32.2% 0.161 280.7);
Tailwind
colors: {
custom: {
50: '#7259a7',
500: '#2c1981',
950: '#000000',
},
}SCSS
$custom: #2c1981; $custom-light: #7259a7; $custom-dark: #000000;
JSON
{
"hex": "#2c1981",
"rgb": {
"r": 44,
"g": 25,
"b": 129
},
"hsl": {
"h": 250.962,
"s": 67.532,
"l": 30.196
},
"oklch": {
"l": 0.32182,
"c": 0.16085,
"h": 280.7
},
"luminance": 0.02816
}Semantic roles & 50–950 ramp
primary
#2C1981
secondary
#A0B541
accent
#EA3DCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F