#2C1676#2C1676
#2C1676 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.150 H 283.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1676 |
|---|---|
| RGB | rgb(44, 22, 118) |
| HSL | hsl(254, 69%, 27%) |
| HSV | hsv(254, 81%, 46%) |
| CMYK | cmyk(62.7%, 81.4%, 0%, 53.7%) |
| CIE-LAB | lab(17.54, 37.58, -50.62) |
| CIE-LCH | lch(17.54, 63.05, 306.58°) |
| OKLab | oklab(30.6% 0.0352 -0.1459) |
| OKLCH | oklch(30.6% 0.15 283.6) |
| XYZ | xyz(4.5946, 2.4170, 17.3604) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.97
Indigo (survey)
#380282
ΔE00 3.86
Dark Royal Blue
#02066F
ΔE00 4.62
Deep Blue
#040273
ΔE00 4.82
Royal
#0C1793
ΔE00 5.09
Navy
#000080
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1676 #607616
analogous
#163076 #2C1676 #5C1676
triadic
#2C1676 #762C16 #16762C
tetradic
#2C1676 #761630 #607616 #16765C
square
#2C1676 #761630 #607616 #16765C
split-complementary
#2C1676 #765C16 #307616
monochromatic
#0A051A #190C42 #2C1676 #3F20AA #552ED8
Accessibility & contrast
On white
14.16
#2C1676 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2C1676 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1676
14.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1676 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1676 | 1.00 | 14.16 | 1.48 | 14.16 |
| #FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c1676; /* rgb */ color: rgb(44, 22, 118); /* oklch */ color: oklch(30.6% 0.150 283.6);
Tailwind
colors: {
custom: {
50: '#70579f',
500: '#2c1676',
950: '#000000',
},
}SCSS
$custom: #2c1676; $custom-light: #70579f; $custom-dark: #000000;
JSON
{
"hex": "#2c1676",
"rgb": {
"r": 44,
"g": 22,
"b": 118
},
"hsl": {
"h": 253.75,
"s": 68.571,
"l": 27.451
},
"oklch": {
"l": 0.306,
"c": 0.15014,
"h": 283.6
},
"luminance": 0.02417
}Semantic roles & 50–950 ramp
primary
#2C1676
secondary
#92AC3C
accent
#EB3CC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E