#2C1B7E#2C1B7E
#2C1B7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.155 H 281.0°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1B7E |
|---|---|
| RGB | rgb(44, 27, 126) |
| HSL | hsl(250, 65%, 30%) |
| HSV | hsv(250, 79%, 49%) |
| CMYK | cmyk(65.1%, 78.6%, 0%, 50.6%) |
| CIE-LAB | lab(19.33, 37.47, -52.79) |
| CIE-LCH | lch(19.33, 64.73, 305.37°) |
| OKLab | oklab(32.11% 0.0296 -0.1523) |
| OKLCH | oklch(32.11% 0.155 281) |
| XYZ | xyz(5.1953, 2.8253, 20.0062) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.19
Royal
#0C1793
ΔE00 4.04
Indigo (survey)
#380282
ΔE00 4.35
Dark Royal Blue
#02066F
ΔE00 5.48
Darkblue
#00008B
ΔE00 5.51
Navy
#000080
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1B7E #6D7E1B
analogous
#1B3C7E #2C1B7E #5D1B7E
triadic
#2C1B7E #7E2C1B #1B7E2C
tetradic
#2C1B7E #7E1B3C #6D7E1B #1B7E5D
square
#2C1B7E #7E1B3C #6D7E1B #1B7E5D
split-complementary
#2C1B7E #7E5D1B #3C7E1B
monochromatic
#090519 #1A104C #2C1B7E #3E26B0 #583ED6
Accessibility & contrast
On white
13.42
#2C1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2C1B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1B7E
13.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1B7E | 1.00 | 13.42 | 1.57 | 13.42 |
| #FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2c1b7e; /* rgb */ color: rgb(44, 27, 126); /* oklch */ color: oklch(32.1% 0.155 281.0);
Tailwind
colors: {
custom: {
50: '#715aa4',
500: '#2c1b7e',
950: '#000000',
},
}SCSS
$custom: #2c1b7e; $custom-light: #715aa4; $custom-dark: #000000;
JSON
{
"hex": "#2c1b7e",
"rgb": {
"r": 44,
"g": 27,
"b": 126
},
"hsl": {
"h": 250.303,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.32114,
"c": 0.15515,
"h": 281
},
"luminance": 0.02826
}Semantic roles & 50–950 ramp
primary
#2C1B7E
secondary
#9FB243
accent
#E840CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F