#2C1794#2C1794
#2C1794 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.185 H 277.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1794 |
|---|---|
| RGB | rgb(44, 23, 148) |
| HSL | hsl(250, 73%, 34%) |
| HSV | hsv(250, 84%, 58%) |
| CMYK | cmyk(70.3%, 84.5%, 0%, 42%) |
| CIE-LAB | lab(21.15, 46.28, -63.57) |
| CIE-LCH | lch(21.15, 78.63, 306.06°) |
| OKLab | oklab(34.12% 0.025 -0.1836) |
| OKLCH | oklch(34.12% 0.185 277.7) |
| XYZ | xyz(6.6887, 3.2858, 28.2930) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.42
Cobalt Blue
#030AA7
ΔE00 3.45
Royal Blue (survey)
#0504AA
ΔE00 3.86
Ultramarine
#2000B1
ΔE00 4.27
Indigo (survey)
#380282
ΔE00 4.28
Indigo Blue
#3A18B1
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1794 #7F9417
analogous
#174094 #2C1794 #6A1794
triadic
#2C1794 #942C17 #17942C
tetradic
#2C1794 #941740 #7F9417 #17946A
square
#2C1794 #941740 #7F9417 #17946A
split-complementary
#2C1794 #946A17 #409417
monochromatic
#0D072A #1C0F5F #2C1794 #3C1FC9 #5E44E2
Accessibility & contrast
On white
12.67
#2C1794 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2C1794 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1794
12.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1794 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1794 | 1.00 | 12.67 | 1.66 | 12.67 |
| #FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2c1794; /* rgb */ color: rgb(44, 23, 148); /* oklch */ color: oklch(34.1% 0.185 277.7);
Tailwind
colors: {
custom: {
50: '#7659b5',
500: '#2c1794',
950: '#000000',
},
}SCSS
$custom: #2c1794; $custom-light: #7659b5; $custom-dark: #000000;
JSON
{
"hex": "#2c1794",
"rgb": {
"r": 44,
"g": 23,
"b": 148
},
"hsl": {
"h": 250.08,
"s": 73.099,
"l": 33.529
},
"oklch": {
"l": 0.34118,
"c": 0.18532,
"h": 277.7
},
"luminance": 0.03286
}Semantic roles & 50–950 ramp
primary
#2C1794
secondary
#ADC344
accent
#F038D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980