#2C1160#2C1160
#2C1160 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.128 H 291.1°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1160 |
|---|---|
| RGB | rgb(44, 17, 96) |
| HSL | hsl(261, 70%, 22%) |
| HSV | hsv(261, 82%, 38%) |
| CMYK | cmyk(54.2%, 82.3%, 0%, 62.4%) |
| CIE-LAB | lab(14.29, 33.36, -41.57) |
| CIE-LCH | lch(14.29, 53.30, 308.75°) |
| OKLab | oklab(27.62% 0.0461 -0.1194) |
| OKLCH | oklch(27.62% 0.128 291.1) |
| XYZ | xyz(3.3499, 1.7808, 11.2313) |
| Luminance | 0.0178 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.81
Midnight Blue
#191970
ΔE00 4.78
Darkblue (survey)
#030764
ΔE00 5.08
Dark Blue
#00035B
ΔE00 5.51
Dark Royal Blue
#02066F
ΔE00 5.67
Deep Blue
#040273
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1160 #456011
analogous
#111E60 #2C1160 #541160
triadic
#2C1160 #602C11 #11602C
tetradic
#2C1160 #60111E #456011 #116054
square
#2C1160 #60111E #456011 #116054
split-complementary
#2C1160 #605411 #1E6011
monochromatic
#0C051A #14082C #2C1160 #441A94 #5C23C8
Accessibility & contrast
On white
15.48
#2C1160 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.36
#2C1160 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1160
15.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1160 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1160 | 1.00 | 15.48 | 1.36 | 15.48 |
| #FFFFFF | 15.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00225F
Tritanopia (blue-blind)
#1A2738
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2c1160; /* rgb */ color: rgb(44, 17, 96); /* oklch */ color: oklch(27.6% 0.128 291.1);
Tailwind
colors: {
custom: {
50: '#6c538e',
500: '#2c1160',
950: '#000000',
},
}SCSS
$custom: #2c1160; $custom-light: #6c538e; $custom-dark: #000000;
JSON
{
"hex": "#2c1160",
"rgb": {
"r": 44,
"g": 17,
"b": 96
},
"hsl": {
"h": 260.506,
"s": 69.912,
"l": 22.157
},
"oklch": {
"l": 0.27623,
"c": 0.12801,
"h": 291.1
},
"luminance": 0.01781
}Semantic roles & 50–950 ramp
primary
#2C1160
secondary
#769934
accent
#ED3BB0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D