#2C1690#2C1690
#2C1690 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.181 H 278.5°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1690 |
|---|---|
| RGB | rgb(44, 22, 144) |
| HSL | hsl(251, 73%, 33%) |
| HSV | hsv(251, 85%, 56%) |
| CMYK | cmyk(69.4%, 84.7%, 0%, 43.5%) |
| CIE-LAB | lab(20.53, 45.52, -62.12) |
| CIE-LCH | lch(20.53, 77.02, 306.23°) |
| OKLab | oklab(33.55% 0.0267 -0.1794) |
| OKLCH | oklch(33.55% 0.181 278.5) |
| XYZ | xyz(6.3580, 3.1224, 26.6478) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.46
Cobalt Blue
#030AA7
ΔE00 3.80
Indigo (survey)
#380282
ΔE00 3.83
Royal Blue (survey)
#0504AA
ΔE00 4.20
Darkblue
#00008B
ΔE00 4.27
Ultramarine
#2000B1
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1690 #7A9016
analogous
#163D90 #2C1690 #691690
triadic
#2C1690 #902C16 #16902C
tetradic
#2C1690 #90163D #7A9016 #169069
square
#2C1690 #90163D #7A9016 #169069
split-complementary
#2C1690 #906916 #3D9016
monochromatic
#0C0626 #1C0E5B #2C1690 #3C1EC5 #5C3FE2
Accessibility & contrast
On white
12.93
#2C1690 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2C1690 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1690
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1690 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1690 | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c1690; /* rgb */ color: rgb(44, 22, 144); /* oklch */ color: oklch(33.5% 0.181 278.5);
Tailwind
colors: {
custom: {
50: '#7559b2',
500: '#2c1690',
950: '#000000',
},
}SCSS
$custom: #2c1690; $custom-light: #7559b2; $custom-dark: #000000;
JSON
{
"hex": "#2c1690",
"rgb": {
"r": 44,
"g": 22,
"b": 144
},
"hsl": {
"h": 250.82,
"s": 73.494,
"l": 32.549
},
"oklch": {
"l": 0.33548,
"c": 0.1814,
"h": 278.5
},
"luminance": 0.03123
}Semantic roles & 50–950 ramp
primary
#2C1690
secondary
#AAC240
accent
#F038CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980