#2C1976#2C1976
#2C1976 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.147 H 283.0°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1976 |
|---|---|
| RGB | rgb(44, 25, 118) |
| HSL | hsl(252, 65%, 28%) |
| HSV | hsv(252, 79%, 46%) |
| CMYK | cmyk(62.7%, 78.8%, 0%, 53.7%) |
| CIE-LAB | lab(18.09, 35.99, -49.71) |
| CIE-LCH | lch(18.09, 61.38, 305.90°) |
| OKLab | oklab(30.99% 0.0332 -0.1433) |
| OKLCH | oklch(30.99% 0.147 283) |
| XYZ | xyz(4.6553, 2.5384, 17.3807) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.70
Indigo (survey)
#380282
ΔE00 4.43
Dark Royal Blue
#02066F
ΔE00 5.02
Royal
#0C1793
ΔE00 5.12
Deep Blue
#040273
ΔE00 5.30
Darkblue (survey)
#030764
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1976 #637619
analogous
#193476 #2C1976 #5A1976
triadic
#2C1976 #762C19 #19762C
tetradic
#2C1976 #761934 #637619 #19765A
square
#2C1976 #761934 #637619 #19765A
split-complementary
#2C1976 #765A19 #347619
monochromatic
#090519 #190E43 #2C1976 #3F24A8 #5635D4
Accessibility & contrast
On white
13.93
#2C1976 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2C1976 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1976
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1976 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1976 | 1.00 | 13.93 | 1.51 | 13.93 |
| #FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c1976; /* rgb */ color: rgb(44, 25, 118); /* oklch */ color: oklch(31.0% 0.147 283.0);
Tailwind
colors: {
custom: {
50: '#6f589e',
500: '#2c1976',
950: '#000000',
},
}SCSS
$custom: #2c1976; $custom-light: #6f589e; $custom-dark: #000000;
JSON
{
"hex": "#2c1976",
"rgb": {
"r": 44,
"g": 25,
"b": 118
},
"hsl": {
"h": 252.258,
"s": 65.035,
"l": 28.039
},
"oklch": {
"l": 0.30987,
"c": 0.1471,
"h": 283
},
"luminance": 0.02539
}Semantic roles & 50–950 ramp
primary
#2C1976
secondary
#95AB40
accent
#E840C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E