#2C1971#2C1971
#2C1971 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.141 H 284.2°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1971 |
|---|---|
| RGB | rgb(44, 25, 113) |
| HSL | hsl(253, 64%, 27%) |
| HSV | hsv(253, 78%, 44%) |
| CMYK | cmyk(61.1%, 77.9%, 0%, 55.7%) |
| CIE-LAB | lab(17.57, 34.39, -47.35) |
| CIE-LCH | lch(17.57, 58.52, 305.99°) |
| OKLab | oklab(30.46% 0.0345 -0.1364) |
| OKLCH | oklch(30.46% 0.141 284.2) |
| XYZ | xyz(4.3661, 2.4227, 15.8571) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.63
Indigo (survey)
#380282
ΔE00 4.92
Dark Royal Blue
#02066F
ΔE00 5.11
Darkblue (survey)
#030764
ΔE00 5.35
Deep Blue
#040273
ΔE00 5.49
Dark Indigo
#1F0954
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1971 #5E7119
analogous
#193271 #2C1971 #581971
triadic
#2C1971 #712C19 #19712C
tetradic
#2C1971 #711932 #5E7119 #197158
square
#2C1971 #711932 #5E7119 #197158
split-complementary
#2C1971 #715819 #327119
monochromatic
#0A0619 #180E3F #2C1971 #4024A3 #5533D2
Accessibility & contrast
On white
14.15
#2C1971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2C1971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1971
14.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1971 | 1.00 | 14.15 | 1.48 | 14.15 |
| #FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#043244
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2c1971; /* rgb */ color: rgb(44, 25, 113); /* oklch */ color: oklch(30.5% 0.141 284.2);
Tailwind
colors: {
custom: {
50: '#6e589b',
500: '#2c1971',
950: '#000000',
},
}SCSS
$custom: #2c1971; $custom-light: #6e589b; $custom-dark: #000000;
JSON
{
"hex": "#2c1971",
"rgb": {
"r": 44,
"g": 25,
"b": 113
},
"hsl": {
"h": 252.955,
"s": 63.768,
"l": 27.059
},
"oklch": {
"l": 0.30458,
"c": 0.14072,
"h": 284.2
},
"luminance": 0.02423
}Semantic roles & 50–950 ramp
primary
#2C1971
secondary
#90A640
accent
#E741C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E