#2C1878#2C1878
#2C1878 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.151 H 282.8°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1878 |
|---|---|
| RGB | rgb(44, 24, 120) |
| HSL | hsl(253, 67%, 28%) |
| HSV | hsv(253, 80%, 47%) |
| CMYK | cmyk(63.3%, 80%, 0%, 52.9%) |
| CIE-LAB | lab(18.12, 37.17, -50.95) |
| CIE-LCH | lch(18.12, 63.07, 306.11°) |
| OKLab | oklab(31.07% 0.0333 -0.1469) |
| OKLCH | oklch(31.07% 0.151 282.8) |
| XYZ | xyz(4.7545, 2.5445, 18.0063) |
| Luminance | 0.0255 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.88
Indigo (survey)
#380282
ΔE00 4.07
Royal
#0C1793
ΔE00 4.80
Dark Royal Blue
#02066F
ΔE00 4.89
Deep Blue
#040273
ΔE00 5.10
Navy
#000080
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1878 #647818
analogous
#183478 #2C1878 #5C1878
triadic
#2C1878 #782C18 #18782C
tetradic
#2C1878 #781834 #647818 #18785C
square
#2C1878 #781834 #647818 #18785C
split-complementary
#2C1878 #785C18 #347818
monochromatic
#09051A #190E45 #2C1878 #3F22AB #5634D6
Accessibility & contrast
On white
13.92
#2C1878 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2C1878 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1878
13.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1878 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1878 | 1.00 | 13.92 | 1.51 | 13.92 |
| #FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c1878; /* rgb */ color: rgb(44, 24, 120); /* oklch */ color: oklch(31.1% 0.151 282.8);
Tailwind
colors: {
custom: {
50: '#7058a0',
500: '#2c1878',
950: '#000000',
},
}SCSS
$custom: #2c1878; $custom-light: #7058a0; $custom-dark: #000000;
JSON
{
"hex": "#2c1878",
"rgb": {
"r": 44,
"g": 24,
"b": 120
},
"hsl": {
"h": 252.5,
"s": 66.667,
"l": 28.235
},
"oklch": {
"l": 0.3107,
"c": 0.15065,
"h": 282.8
},
"luminance": 0.02545
}Semantic roles & 50–950 ramp
primary
#2C1878
secondary
#96AD3F
accent
#EA3EC6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F