#2C1788#2C1788
#2C1788 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.171 H 279.7°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1788 |
|---|---|
| RGB | rgb(44, 23, 136) |
| HSL | hsl(251, 71%, 31%) |
| HSV | hsv(251, 83%, 53%) |
| CMYK | cmyk(67.6%, 83.1%, 0%, 46.7%) |
| CIE-LAB | lab(19.74, 42.65, -58.42) |
| CIE-LCH | lch(19.74, 72.33, 306.13°) |
| OKLab | oklab(32.73% 0.0289 -0.1687) |
| OKLCH | oklch(32.73% 0.171 279.7) |
| XYZ | xyz(5.7876, 2.9254, 23.5474) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.87
Indigo (survey)
#380282
ΔE00 3.54
Darkblue
#00008B
ΔE00 4.38
Midnight Blue
#191970
ΔE00 4.55
Cobalt Blue
#030AA7
ΔE00 4.82
Navy
#000080
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1788 #738817
analogous
#173B88 #2C1788 #641788
triadic
#2C1788 #882C17 #17882C
tetradic
#2C1788 #88173B #738817 #178864
square
#2C1788 #88173B #738817 #178864
split-complementary
#2C1788 #886417 #3B8817
monochromatic
#0A051F #1B0E54 #2C1788 #3D20BC #5A3BDE
Accessibility & contrast
On white
13.25
#2C1788 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2C1788 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1788
13.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1788 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1788 | 1.00 | 13.25 | 1.59 | 13.25 |
| #FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2c1788; /* rgb */ color: rgb(44, 23, 136); /* oklch */ color: oklch(32.7% 0.171 279.7);
Tailwind
colors: {
custom: {
50: '#7458ac',
500: '#2c1788',
950: '#000000',
},
}SCSS
$custom: #2c1788; $custom-light: #7458ac; $custom-dark: #000000;
JSON
{
"hex": "#2c1788",
"rgb": {
"r": 44,
"g": 23,
"b": 136
},
"hsl": {
"h": 251.15,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.32732,
"c": 0.17113,
"h": 279.7
},
"luminance": 0.02926
}Semantic roles & 50–950 ramp
primary
#2C1788
secondary
#A5BC3F
accent
#EE3ACC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F