#2C1876#2C1876
#2C1876 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.148 H 283.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1876 |
|---|---|
| RGB | rgb(44, 24, 118) |
| HSL | hsl(253, 66%, 28%) |
| HSV | hsv(253, 80%, 46%) |
| CMYK | cmyk(62.7%, 79.7%, 0%, 53.7%) |
| CIE-LAB | lab(17.90, 36.53, -50.03) |
| CIE-LCH | lch(17.90, 61.95, 306.14°) |
| OKLab | oklab(30.85% 0.0339 -0.1442) |
| OKLCH | oklch(30.85% 0.148 283.2) |
| XYZ | xyz(4.6343, 2.4964, 17.3737) |
| Luminance | 0.0250 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.78
Indigo (survey)
#380282
ΔE00 4.23
Dark Royal Blue
#02066F
ΔE00 4.88
Royal
#0C1793
ΔE00 5.10
Deep Blue
#040273
ΔE00 5.13
Darkblue (survey)
#030764
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1876 #627618
analogous
#183376 #2C1876 #5B1876
triadic
#2C1876 #762C18 #18762C
tetradic
#2C1876 #761833 #627618 #18765B
square
#2C1876 #761833 #627618 #18765B
split-complementary
#2C1876 #765B18 #337618
monochromatic
#090519 #190E43 #2C1876 #3F22A9 #5633D5
Accessibility & contrast
On white
14.01
#2C1876 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2C1876 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1876
14.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1876 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1876 | 1.00 | 14.01 | 1.50 | 14.01 |
| #FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c1876; /* rgb */ color: rgb(44, 24, 118); /* oklch */ color: oklch(30.9% 0.148 283.2);
Tailwind
colors: {
custom: {
50: '#70589e',
500: '#2c1876',
950: '#000000',
},
}SCSS
$custom: #2c1876; $custom-light: #70589e; $custom-dark: #000000;
JSON
{
"hex": "#2c1876",
"rgb": {
"r": 44,
"g": 24,
"b": 118
},
"hsl": {
"h": 252.766,
"s": 66.197,
"l": 27.843
},
"oklch": {
"l": 0.30854,
"c": 0.14814,
"h": 283.2
},
"luminance": 0.02497
}Semantic roles & 50–950 ramp
primary
#2C1876
secondary
#94AB3F
accent
#E93FC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E