#2C1789#2C1789
#2C1789 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.172 H 279.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1789 |
|---|---|
| RGB | rgb(44, 23, 137) |
| HSL | hsl(251, 71%, 31%) |
| HSV | hsv(251, 83%, 54%) |
| CMYK | cmyk(67.9%, 83.2%, 0%, 46.3%) |
| CIE-LAB | lab(19.86, 42.95, -58.86) |
| CIE-LCH | lch(19.86, 72.87, 306.12°) |
| OKLab | oklab(32.85% 0.0286 -0.1699) |
| OKLCH | oklch(32.85% 0.172 279.5) |
| XYZ | xyz(5.8590, 2.9539, 23.9235) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.79
Indigo (survey)
#380282
ΔE00 3.57
Darkblue
#00008B
ΔE00 4.36
Midnight Blue
#191970
ΔE00 4.67
Cobalt Blue
#030AA7
ΔE00 4.69
Navy
#000080
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1789 #748917
analogous
#173B89 #2C1789 #651789
triadic
#2C1789 #892C17 #17892C
tetradic
#2C1789 #89173B #748917 #178965
square
#2C1789 #89173B #748917 #178965
split-complementary
#2C1789 #896517 #3B8917
monochromatic
#0A0520 #1B0E55 #2C1789 #3D20BD #5A3CDE
Accessibility & contrast
On white
13.20
#2C1789 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2C1789 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1789
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1789 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1789 | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2c1789; /* rgb */ color: rgb(44, 23, 137); /* oklch */ color: oklch(32.8% 0.172 279.5);
Tailwind
colors: {
custom: {
50: '#7459ad',
500: '#2c1789',
950: '#000000',
},
}SCSS
$custom: #2c1789; $custom-light: #7459ad; $custom-dark: #000000;
JSON
{
"hex": "#2c1789",
"rgb": {
"r": 44,
"g": 23,
"b": 137
},
"hsl": {
"h": 251.053,
"s": 71.25,
"l": 31.373
},
"oklch": {
"l": 0.32847,
"c": 0.17233,
"h": 279.5
},
"luminance": 0.02954
}Semantic roles & 50–950 ramp
primary
#2C1789
secondary
#A6BD3F
accent
#EE3ACD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F