#2C1B79#2C1B79
#2C1B79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.149 H 282.0°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1B79 |
|---|---|
| RGB | rgb(44, 27, 121) |
| HSL | hsl(251, 64%, 29%) |
| HSV | hsv(251, 78%, 47%) |
| CMYK | cmyk(63.6%, 77.7%, 0%, 52.5%) |
| CIE-LAB | lab(18.80, 35.86, -50.48) |
| CIE-LCH | lch(18.80, 61.91, 305.39°) |
| OKLab | oklab(31.58% 0.0309 -0.1456) |
| OKLCH | oklch(31.58% 0.149 282) |
| XYZ | xyz(4.8808, 2.6995, 18.3493) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.76
Indigo (survey)
#380282
ΔE00 4.62
Royal
#0C1793
ΔE00 4.74
Dark Royal Blue
#02066F
ΔE00 5.35
Deep Blue
#040273
ΔE00 5.62
Navy
#000080
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1B79 #68791B
analogous
#1B3979 #2C1B79 #5B1B79
triadic
#2C1B79 #792C1B #1B792C
tetradic
#2C1B79 #791B39 #68791B #1B795B
square
#2C1B79 #791B39 #68791B #1B795B
split-complementary
#2C1B79 #795B1B #39791B
monochromatic
#090619 #1A1047 #2C1B79 #3E26AB #573BD3
Accessibility & contrast
On white
13.64
#2C1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2C1B79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1B79
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1B79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1B79 | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2c1b79; /* rgb */ color: rgb(44, 27, 121); /* oklch */ color: oklch(31.6% 0.149 282.0);
Tailwind
colors: {
custom: {
50: '#705aa1',
500: '#2c1b79',
950: '#000000',
},
}SCSS
$custom: #2c1b79; $custom-light: #705aa1; $custom-dark: #000000;
JSON
{
"hex": "#2c1b79",
"rgb": {
"r": 44,
"g": 27,
"b": 121
},
"hsl": {
"h": 250.851,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.31579,
"c": 0.1488,
"h": 282
},
"luminance": 0.027
}Semantic roles & 50–950 ramp
primary
#2C1B79
secondary
#9AAD43
accent
#E741C9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F