#2C1B80#2C1B80
#2C1B80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.158 H 280.6°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1B80 |
|---|---|
| RGB | rgb(44, 27, 128) |
| HSL | hsl(250, 65%, 30%) |
| HSV | hsv(250, 79%, 50%) |
| CMYK | cmyk(65.6%, 78.9%, 0%, 49.8%) |
| CIE-LAB | lab(19.55, 38.11, -53.70) |
| CIE-LCH | lch(19.55, 65.85, 305.37°) |
| OKLab | oklab(32.33% 0.029 -0.155) |
| OKLCH | oklch(32.33% 0.158 280.6) |
| XYZ | xyz(5.3257, 2.8774, 20.6926) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.41
Royal
#0C1793
ΔE00 3.78
Indigo (survey)
#380282
ΔE00 4.29
Darkblue
#00008B
ΔE00 5.37
Navy
#000080
ΔE00 5.47
Dark Royal Blue
#02066F
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1B80 #6F801B
analogous
#1B3C80 #2C1B80 #5E1B80
triadic
#2C1B80 #802C1B #1B802C
tetradic
#2C1B80 #801B3C #6F801B #1B805E
square
#2C1B80 #801B3C #6F801B #1B805E
split-complementary
#2C1B80 #805E1B #3C801B
monochromatic
#09061B #1B104D #2C1B80 #3D26B3 #583FD6
Accessibility & contrast
On white
13.33
#2C1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2C1B80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1B80
13.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1B80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1B80 | 1.00 | 13.33 | 1.58 | 13.33 |
| #FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1b80; /* rgb */ color: rgb(44, 27, 128); /* oklch */ color: oklch(32.3% 0.158 280.6);
Tailwind
colors: {
custom: {
50: '#715aa6',
500: '#2c1b80',
950: '#000000',
},
}SCSS
$custom: #2c1b80; $custom-light: #715aa6; $custom-dark: #000000;
JSON
{
"hex": "#2c1b80",
"rgb": {
"r": 44,
"g": 27,
"b": 128
},
"hsl": {
"h": 250.099,
"s": 65.161,
"l": 30.392
},
"oklch": {
"l": 0.3233,
"c": 0.15766,
"h": 280.6
},
"luminance": 0.02878
}Semantic roles & 50–950 ramp
primary
#2C1B80
secondary
#A1B443
accent
#E840CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F