#2C1481#2C1481
#2C1481 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.165 H 281.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1481 |
|---|---|
| RGB | rgb(44, 20, 129) |
| HSL | hsl(253, 73%, 29%) |
| HSV | hsv(253, 84%, 51%) |
| CMYK | cmyk(65.9%, 84.5%, 0%, 49.4%) |
| CIE-LAB | lab(18.45, 41.91, -56.14) |
| CIE-LCH | lch(18.45, 70.06, 306.74°) |
| OKLab | oklab(31.6% 0.0328 -0.162) |
| OKLCH | oklch(31.6% 0.165 281.4) |
| XYZ | xyz(5.2501, 2.6204, 20.9937) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.96
Royal
#0C1793
ΔE00 3.66
Midnight Blue
#191970
ΔE00 4.01
Darkblue
#00008B
ΔE00 4.26
Navy
#000080
ΔE00 4.37
Deep Blue
#040273
ΔE00 4.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1481 #698114
analogous
#143381 #2C1481 #631481
triadic
#2C1481 #812C14 #14812C
tetradic
#2C1481 #811433 #698114 #148163
square
#2C1481 #811433 #698114 #148163
split-complementary
#2C1481 #816314 #338114
monochromatic
#09041A #1A0C4C #2C1481 #3E1CB6 #5730DF
Accessibility & contrast
On white
13.78
#2C1481 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2C1481 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1481
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1481 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1481 | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2c1481; /* rgb */ color: rgb(44, 20, 129); /* oklch */ color: oklch(31.6% 0.165 281.4);
Tailwind
colors: {
custom: {
50: '#7256a7',
500: '#2c1481',
950: '#000000',
},
}SCSS
$custom: #2c1481; $custom-light: #7256a7; $custom-dark: #000000;
JSON
{
"hex": "#2c1481",
"rgb": {
"r": 44,
"g": 20,
"b": 129
},
"hsl": {
"h": 253.211,
"s": 73.154,
"l": 29.216
},
"oklch": {
"l": 0.31604,
"c": 0.16527,
"h": 281.4
},
"luminance": 0.02621
}Semantic roles & 50–950 ramp
primary
#2C1481
secondary
#9BB63B
accent
#F038C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F