#2C1777#2C1777
#2C1777 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.150 H 283.2°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1777 |
|---|---|
| RGB | rgb(44, 23, 119) |
| HSL | hsl(253, 68%, 28%) |
| HSV | hsv(253, 81%, 47%) |
| CMYK | cmyk(63%, 80.7%, 0%, 53.3%) |
| CIE-LAB | lab(17.83, 37.37, -50.79) |
| CIE-LCH | lch(17.83, 63.06, 306.35°) |
| OKLab | oklab(30.83% 0.0343 -0.1464) |
| OKLCH | oklch(30.83% 0.15 283.2) |
| XYZ | xyz(4.6738, 2.4799, 17.6816) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.91
Indigo (survey)
#380282
ΔE00 3.96
Dark Royal Blue
#02066F
ΔE00 4.75
Royal
#0C1793
ΔE00 4.94
Deep Blue
#040273
ΔE00 4.95
Navy
#000080
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1777 #627717
analogous
#173277 #2C1777 #5C1777
triadic
#2C1777 #772C17 #17772C
tetradic
#2C1777 #771732 #627717 #17775C
square
#2C1777 #771732 #627717 #17775C
split-complementary
#2C1777 #775C17 #327717
monochromatic
#09051A #190D44 #2C1777 #3F21AA #5631D7
Accessibility & contrast
On white
14.04
#2C1777 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2C1777 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1777
14.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1777 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1777 | 1.00 | 14.04 | 1.50 | 14.04 |
| #FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c1777; /* rgb */ color: rgb(44, 23, 119); /* oklch */ color: oklch(30.8% 0.150 283.2);
Tailwind
colors: {
custom: {
50: '#70579f',
500: '#2c1777',
950: '#000000',
},
}SCSS
$custom: #2c1777; $custom-light: #70579f; $custom-dark: #000000;
JSON
{
"hex": "#2c1777",
"rgb": {
"r": 44,
"g": 23,
"b": 119
},
"hsl": {
"h": 253.125,
"s": 67.606,
"l": 27.843
},
"oklch": {
"l": 0.30834,
"c": 0.1504,
"h": 283.2
},
"luminance": 0.0248
}Semantic roles & 50–950 ramp
primary
#2C1777
secondary
#94AC3E
accent
#EA3DC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E