#2C1979#2C1979
#2C1979 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.151 H 282.4°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1979 |
|---|---|
| RGB | rgb(44, 25, 121) |
| HSL | hsl(252, 66%, 29%) |
| HSV | hsv(252, 79%, 47%) |
| CMYK | cmyk(63.6%, 79.3%, 0%, 52.5%) |
| CIE-LAB | lab(18.41, 36.95, -51.11) |
| CIE-LCH | lch(18.41, 63.07, 305.87°) |
| OKLab | oklab(31.31% 0.0323 -0.1474) |
| OKLCH | oklch(31.31% 0.151 282.4) |
| XYZ | xyz(4.8365, 2.6109, 18.3345) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.87
Indigo (survey)
#380282
ΔE00 4.20
Royal
#0C1793
ΔE00 4.67
Dark Royal Blue
#02066F
ΔE00 5.04
Deep Blue
#040273
ΔE00 5.26
Navy
#000080
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1979 #667919
analogous
#193679 #2C1979 #5C1979
triadic
#2C1979 #792C19 #19792C
tetradic
#2C1979 #791936 #667919 #19795C
square
#2C1979 #791936 #667919 #19795C
split-complementary
#2C1979 #795C19 #367919
monochromatic
#090519 #1A0F46 #2C1979 #3E23AC #5637D6
Accessibility & contrast
On white
13.80
#2C1979 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2C1979 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1979
13.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1979 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1979 | 1.00 | 13.80 | 1.52 | 13.80 |
| #FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2c1979; /* rgb */ color: rgb(44, 25, 121); /* oklch */ color: oklch(31.3% 0.151 282.4);
Tailwind
colors: {
custom: {
50: '#7059a1',
500: '#2c1979',
950: '#000000',
},
}SCSS
$custom: #2c1979; $custom-light: #7059a1; $custom-dark: #000000;
JSON
{
"hex": "#2c1979",
"rgb": {
"r": 44,
"g": 25,
"b": 121
},
"hsl": {
"h": 251.875,
"s": 65.753,
"l": 28.627
},
"oklch": {
"l": 0.31309,
"c": 0.15089,
"h": 282.4
},
"luminance": 0.02611
}Semantic roles & 50–950 ramp
primary
#2C1979
secondary
#98AE40
accent
#E93FC7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F