#2C1790#2C1790
#2C1790 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.181 H 278.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1790 |
|---|---|
| RGB | rgb(44, 23, 144) |
| HSL | hsl(250, 72%, 33%) |
| HSV | hsv(250, 84%, 56%) |
| CMYK | cmyk(69.4%, 84%, 0%, 43.5%) |
| CIE-LAB | lab(20.68, 45.08, -61.87) |
| CIE-LCH | lch(20.68, 76.55, 306.08°) |
| OKLab | oklab(33.65% 0.0263 -0.1787) |
| OKLCH | oklch(33.65% 0.181 278.4) |
| XYZ | xyz(6.3775, 3.1613, 26.6543) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.43
Cobalt Blue
#030AA7
ΔE00 3.86
Indigo (survey)
#380282
ΔE00 3.96
Royal Blue (survey)
#0504AA
ΔE00 4.28
Darkblue
#00008B
ΔE00 4.40
Ultramarine
#2000B1
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1790 #7B9017
analogous
#173F90 #2C1790 #681790
triadic
#2C1790 #902C17 #17902C
tetradic
#2C1790 #90173F #7B9017 #179068
square
#2C1790 #90173F #7B9017 #179068
split-complementary
#2C1790 #906817 #3F9017
monochromatic
#0C0626 #1C0F5B #2C1790 #3C1FC5 #5D41E1
Accessibility & contrast
On white
12.86
#2C1790 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2C1790 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1790
12.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1790 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1790 | 1.00 | 12.86 | 1.63 | 12.86 |
| #FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c1790; /* rgb */ color: rgb(44, 23, 144); /* oklch */ color: oklch(33.7% 0.181 278.4);
Tailwind
colors: {
custom: {
50: '#7559b2',
500: '#2c1790',
950: '#000000',
},
}SCSS
$custom: #2c1790; $custom-light: #7559b2; $custom-dark: #000000;
JSON
{
"hex": "#2c1790",
"rgb": {
"r": 44,
"g": 23,
"b": 144
},
"hsl": {
"h": 250.413,
"s": 72.455,
"l": 32.745
},
"oklch": {
"l": 0.33653,
"c": 0.18063,
"h": 278.4
},
"luminance": 0.03162
}Semantic roles & 50–950 ramp
primary
#2C1790
secondary
#ABC142
accent
#EF39CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980