#2C1290#2C1290
#2C1290 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.184 H 278.8°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1290 |
|---|---|
| RGB | rgb(44, 18, 144) |
| HSL | hsl(252, 78%, 32%) |
| HSV | hsv(252, 88%, 56%) |
| CMYK | cmyk(69.4%, 87.5%, 0%, 43.5%) |
| CIE-LAB | lab(19.97, 47.18, -63.05) |
| CIE-LCH | lch(19.97, 78.75, 306.81°) |
| OKLab | oklab(33.17% 0.0283 -0.182) |
| OKLCH | oklch(33.17% 0.184 278.8) |
| XYZ | xyz(6.2874, 2.9812, 26.6242) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.66
Indigo (survey)
#380282
ΔE00 3.37
Cobalt Blue
#030AA7
ΔE00 3.62
Darkblue
#00008B
ΔE00 3.83
Royal Blue (survey)
#0504AA
ΔE00 3.96
Ultramarine
#2000B1
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1290 #769012
analogous
#123790 #2C1290 #6B1290
triadic
#2C1290 #902C12 #12902C
tetradic
#2C1290 #901237 #769012 #12906B
square
#2C1290 #901237 #769012 #12906B
split-complementary
#2C1290 #906B12 #379012
monochromatic
#0B0423 #1B0B5A #2C1290 #3D19C6 #5B36E6
Accessibility & contrast
On white
13.15
#2C1290 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2C1290 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1290
13.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1290 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1290 | 1.00 | 13.15 | 1.60 | 13.15 |
| #FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2c1290; /* rgb */ color: rgb(44, 18, 144); /* oklch */ color: oklch(33.2% 0.184 278.8);
Tailwind
colors: {
custom: {
50: '#7657b2',
500: '#2c1290',
950: '#000000',
},
}SCSS
$custom: #2c1290; $custom-light: #7657b2; $custom-dark: #000000;
JSON
{
"hex": "#2c1290",
"rgb": {
"r": 44,
"g": 18,
"b": 144
},
"hsl": {
"h": 252.381,
"s": 77.778,
"l": 31.765
},
"oklch": {
"l": 0.33166,
"c": 0.18422,
"h": 278.8
},
"luminance": 0.02982
}Semantic roles & 50–950 ramp
primary
#2C1290
secondary
#A7C43A
accent
#F434CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880