#2C1681#2C1681
#2C1681 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.164 H 281.2°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1681 |
|---|---|
| RGB | rgb(44, 22, 129) |
| HSL | hsl(252, 71%, 30%) |
| HSV | hsv(252, 83%, 51%) |
| CMYK | cmyk(65.9%, 82.9%, 0%, 49.4%) |
| CIE-LAB | lab(18.77, 40.98, -55.61) |
| CIE-LCH | lch(18.77, 69.08, 306.38°) |
| OKLab | oklab(31.83% 0.0317 -0.1605) |
| OKLCH | oklch(31.83% 0.164 281.2) |
| XYZ | xyz(5.2868, 2.6939, 21.0060) |
| Luminance | 0.0269 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.29
Royal
#0C1793
ΔE00 3.61
Midnight Blue
#191970
ΔE00 3.83
Darkblue
#00008B
ΔE00 4.51
Navy
#000080
ΔE00 4.64
Deep Blue
#040273
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1681 #6B8116
analogous
#163681 #2C1681 #611681
triadic
#2C1681 #812C16 #16812C
tetradic
#2C1681 #811636 #6B8116 #168161
square
#2C1681 #811636 #6B8116 #168161
split-complementary
#2C1681 #816116 #368116
monochromatic
#09041A #1A0D4D #2C1681 #3E1FB5 #5735DD
Accessibility & contrast
On white
13.65
#2C1681 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2C1681 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1681
13.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1681 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1681 | 1.00 | 13.65 | 1.54 | 13.65 |
| #FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2c1681; /* rgb */ color: rgb(44, 22, 129); /* oklch */ color: oklch(31.8% 0.164 281.2);
Tailwind
colors: {
custom: {
50: '#7257a7',
500: '#2c1681',
950: '#000000',
},
}SCSS
$custom: #2c1681; $custom-light: #7257a7; $custom-dark: #000000;
JSON
{
"hex": "#2c1681",
"rgb": {
"r": 44,
"g": 22,
"b": 129
},
"hsl": {
"h": 252.336,
"s": 70.861,
"l": 29.608
},
"oklch": {
"l": 0.31825,
"c": 0.16358,
"h": 281.2
},
"luminance": 0.02694
}Semantic roles & 50–950 ramp
primary
#2C1681
secondary
#9DB63D
accent
#EE3AC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F