#2C1781#2C1781
#2C1781 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.163 H 281.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1781 |
|---|---|
| RGB | rgb(44, 23, 129) |
| HSL | hsl(252, 70%, 30%) |
| HSV | hsv(252, 82%, 51%) |
| CMYK | cmyk(65.9%, 82.2%, 0%, 49.4%) |
| CIE-LAB | lab(18.94, 40.49, -55.33) |
| CIE-LCH | lch(18.94, 68.57, 306.20°) |
| OKLab | oklab(31.94% 0.0311 -0.1597) |
| OKLCH | oklch(31.94% 0.163 281) |
| XYZ | xyz(5.3063, 2.7328, 21.0125) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.47
Royal
#0C1793
ΔE00 3.59
Midnight Blue
#191970
ΔE00 3.75
Darkblue
#00008B
ΔE00 4.66
Navy
#000080
ΔE00 4.78
Deep Blue
#040273
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1781 #6C8117
analogous
#173781 #2C1781 #611781
triadic
#2C1781 #812C17 #17812C
tetradic
#2C1781 #811737 #6C8117 #178161
square
#2C1781 #811737 #6C8117 #178161
split-complementary
#2C1781 #816117 #378117
monochromatic
#09051A #1A0E4D #2C1781 #3E20B5 #5837DB
Accessibility & contrast
On white
13.58
#2C1781 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2C1781 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1781
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1781 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1781 | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2c1781; /* rgb */ color: rgb(44, 23, 129); /* oklch */ color: oklch(31.9% 0.163 281.0);
Tailwind
colors: {
custom: {
50: '#7258a7',
500: '#2c1781',
950: '#000000',
},
}SCSS
$custom: #2c1781; $custom-light: #7258a7; $custom-dark: #000000;
JSON
{
"hex": "#2c1781",
"rgb": {
"r": 44,
"g": 23,
"b": 129
},
"hsl": {
"h": 251.887,
"s": 69.737,
"l": 29.804
},
"oklch": {
"l": 0.3194,
"c": 0.1627,
"h": 281
},
"luminance": 0.02733
}Semantic roles & 50–950 ramp
primary
#2C1781
secondary
#9EB53E
accent
#ED3BC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F