#2C1689#2C1689
#2C1689 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.173 H 279.7°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1689 |
|---|---|
| RGB | rgb(44, 22, 137) |
| HSL | hsl(251, 72%, 31%) |
| HSV | hsv(251, 84%, 54%) |
| CMYK | cmyk(67.9%, 83.9%, 0%, 46.3%) |
| CIE-LAB | lab(19.70, 43.41, -59.12) |
| CIE-LCH | lch(19.70, 73.35, 306.29°) |
| OKLab | oklab(32.74% 0.029 -0.1707) |
| OKLCH | oklch(32.74% 0.173 279.7) |
| XYZ | xyz(5.8395, 2.9150, 23.9170) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.81
Indigo (survey)
#380282
ΔE00 3.41
Darkblue
#00008B
ΔE00 4.22
Cobalt Blue
#030AA7
ΔE00 4.63
Midnight Blue
#191970
ΔE00 4.73
Navy
#000080
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1689 #738916
analogous
#163989 #2C1689 #651689
triadic
#2C1689 #892C16 #16892C
tetradic
#2C1689 #891639 #738916 #168965
square
#2C1689 #891639 #738916 #168965
split-complementary
#2C1689 #896516 #398916
monochromatic
#0A0520 #1B0E54 #2C1689 #3D1EBE #5A3ADF
Accessibility & contrast
On white
13.27
#2C1689 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2C1689 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1689
13.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1689 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1689 | 1.00 | 13.27 | 1.58 | 13.27 |
| #FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2c1689; /* rgb */ color: rgb(44, 22, 137); /* oklch */ color: oklch(32.7% 0.173 279.7);
Tailwind
colors: {
custom: {
50: '#7458ad',
500: '#2c1689',
950: '#000000',
},
}SCSS
$custom: #2c1689; $custom-light: #7458ad; $custom-dark: #000000;
JSON
{
"hex": "#2c1689",
"rgb": {
"r": 44,
"g": 22,
"b": 137
},
"hsl": {
"h": 251.478,
"s": 72.327,
"l": 31.176
},
"oklch": {
"l": 0.32737,
"c": 0.17315,
"h": 279.7
},
"luminance": 0.02915
}Semantic roles & 50–950 ramp
primary
#2C1689
secondary
#A5BD3E
accent
#EF39CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F