#2C1972#2C1972
#2C1972 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.142 H 284.0°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1972 |
|---|---|
| RGB | rgb(44, 25, 114) |
| HSL | hsl(253, 64%, 27%) |
| HSV | hsv(253, 78%, 45%) |
| CMYK | cmyk(61.4%, 78.1%, 0%, 55.3%) |
| CIE-LAB | lab(17.67, 34.71, -47.83) |
| CIE-LCH | lch(17.67, 59.10, 305.97°) |
| OKLab | oklab(30.56% 0.0342 -0.1378) |
| OKLCH | oklch(30.56% 0.142 284) |
| XYZ | xyz(4.4227, 2.4454, 16.1553) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.62
Indigo (survey)
#380282
ΔE00 4.81
Dark Royal Blue
#02066F
ΔE00 5.08
Darkblue (survey)
#030764
ΔE00 5.37
Deep Blue
#040273
ΔE00 5.44
Dark Indigo
#1F0954
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1972 #5F7219
analogous
#193372 #2C1972 #591972
triadic
#2C1972 #722C19 #19722C
tetradic
#2C1972 #721933 #5F7219 #197259
square
#2C1972 #721933 #5F7219 #197259
split-complementary
#2C1972 #725919 #337219
monochromatic
#0A0619 #190E40 #2C1972 #3F24A4 #5533D2
Accessibility & contrast
On white
14.10
#2C1972 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2C1972 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1972
14.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1972 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1972 | 1.00 | 14.10 | 1.49 | 14.10 |
| #FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#033244
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c1972; /* rgb */ color: rgb(44, 25, 114); /* oklch */ color: oklch(30.6% 0.142 284.0);
Tailwind
colors: {
custom: {
50: '#6f589b',
500: '#2c1972',
950: '#000000',
},
}SCSS
$custom: #2c1972; $custom-light: #6f589b; $custom-dark: #000000;
JSON
{
"hex": "#2c1972",
"rgb": {
"r": 44,
"g": 25,
"b": 114
},
"hsl": {
"h": 252.809,
"s": 64.029,
"l": 27.255
},
"oklch": {
"l": 0.30563,
"c": 0.142,
"h": 284
},
"luminance": 0.02446
}Semantic roles & 50–950 ramp
primary
#2C1972
secondary
#91A740
accent
#E741C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E