#2C1785#2C1785
#2C1785 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.168 H 280.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1785 |
|---|---|
| RGB | rgb(44, 23, 133) |
| HSL | hsl(251, 71%, 31%) |
| HSV | hsv(251, 83%, 52%) |
| CMYK | cmyk(66.9%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(19.40, 41.73, -57.11) |
| CIE-LCH | lch(19.40, 70.73, 306.15°) |
| OKLab | oklab(32.39% 0.0299 -0.1648) |
| OKLCH | oklch(32.39% 0.168 280.3) |
| XYZ | xyz(5.5774, 2.8413, 22.4403) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.15
Indigo (survey)
#380282
ΔE00 3.47
Midnight Blue
#191970
ΔE00 4.20
Darkblue
#00008B
ΔE00 4.46
Navy
#000080
ΔE00 4.78
Cobalt Blue
#030AA7
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1785 #708517
analogous
#173985 #2C1785 #631785
triadic
#2C1785 #852C17 #17852C
tetradic
#2C1785 #851739 #708517 #178563
square
#2C1785 #851739 #708517 #178563
split-complementary
#2C1785 #856317 #398517
monochromatic
#09051D #1B0E51 #2C1785 #3D20B9 #593ADD
Accessibility & contrast
On white
13.39
#2C1785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2C1785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1785
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1785 | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1785; /* rgb */ color: rgb(44, 23, 133); /* oklch */ color: oklch(32.4% 0.168 280.3);
Tailwind
colors: {
custom: {
50: '#7358aa',
500: '#2c1785',
950: '#000000',
},
}SCSS
$custom: #2c1785; $custom-light: #7358aa; $custom-dark: #000000;
JSON
{
"hex": "#2c1785",
"rgb": {
"r": 44,
"g": 23,
"b": 133
},
"hsl": {
"h": 251.455,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.32391,
"c": 0.16753,
"h": 280.3
},
"luminance": 0.02842
}Semantic roles & 50–950 ramp
primary
#2C1785
secondary
#A2B93F
accent
#ED3BCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F