#2C1390#2C1390
#2C1390 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.184 H 278.7°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1390 |
|---|---|
| RGB | rgb(44, 19, 144) |
| HSL | hsl(252, 77%, 32%) |
| HSV | hsv(252, 87%, 56%) |
| CMYK | cmyk(69.4%, 86.8%, 0%, 43.5%) |
| CIE-LAB | lab(20.10, 46.79, -62.83) |
| CIE-LCH | lch(20.10, 78.34, 306.67°) |
| OKLab | oklab(33.26% 0.0279 -0.1814) |
| OKLCH | oklch(33.26% 0.184 278.7) |
| XYZ | xyz(6.3040, 3.0143, 26.6298) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.60
Indigo (survey)
#380282
ΔE00 3.47
Cobalt Blue
#030AA7
ΔE00 3.65
Darkblue
#00008B
ΔE00 3.93
Royal Blue (survey)
#0504AA
ΔE00 4.01
Ultramarine
#2000B1
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1390 #779013
analogous
#133990 #2C1390 #6B1390
triadic
#2C1390 #902C13 #13902C
tetradic
#2C1390 #901339 #779013 #13906B
square
#2C1390 #901339 #779013 #13906B
split-complementary
#2C1390 #906B13 #399013
monochromatic
#0B0524 #1B0C5A #2C1390 #3D1AC6 #5B39E5
Accessibility & contrast
On white
13.10
#2C1390 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2C1390 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1390
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1390 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1390 | 1.00 | 13.10 | 1.60 | 13.10 |
| #FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c1390; /* rgb */ color: rgb(44, 19, 144); /* oklch */ color: oklch(33.3% 0.184 278.7);
Tailwind
colors: {
custom: {
50: '#7657b2',
500: '#2c1390',
950: '#000000',
},
}SCSS
$custom: #2c1390; $custom-light: #7657b2; $custom-dark: #000000;
JSON
{
"hex": "#2c1390",
"rgb": {
"r": 44,
"g": 19,
"b": 144
},
"hsl": {
"h": 252,
"s": 76.687,
"l": 31.961
},
"oklch": {
"l": 0.33256,
"c": 0.18355,
"h": 278.7
},
"luminance": 0.03015
}Semantic roles & 50–950 ramp
primary
#2C1390
secondary
#A8C43B
accent
#F335CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880