#2D1B79#2D1B79
#2D1B79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.149 H 282.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1B79 |
|---|---|
| RGB | rgb(45, 27, 121) |
| HSL | hsl(251, 64%, 29%) |
| HSV | hsv(251, 78%, 47%) |
| CMYK | cmyk(62.8%, 77.7%, 0%, 52.5%) |
| CIE-LAB | lab(18.89, 35.99, -50.31) |
| CIE-LCH | lch(18.89, 61.86, 305.58°) |
| OKLab | oklab(31.67% 0.0324 -0.1451) |
| OKLCH | oklch(31.67% 0.149 282.6) |
| XYZ | xyz(4.9242, 2.7219, 18.3513) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Indigo (survey)
#380282
ΔE00 4.55
Royal
#0C1793
ΔE00 4.82
Dark Royal Blue
#02066F
ΔE00 5.43
Deep Blue
#040273
ΔE00 5.68
Navy
#000080
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1B79 #67791B
analogous
#1B3879 #2D1B79 #5C1B79
triadic
#2D1B79 #792D1B #1B792D
tetradic
#2D1B79 #791B38 #67791B #1B795C
square
#2D1B79 #791B38 #67791B #1B795C
split-complementary
#2D1B79 #795C1B #38791B
monochromatic
#090619 #1A1047 #2D1B79 #4026AB #583BD3
Accessibility & contrast
On white
13.60
#2D1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2D1B79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1B79
13.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1B79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1B79 | 1.00 | 13.60 | 1.54 | 13.60 |
| #FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2d1b79; /* rgb */ color: rgb(45, 27, 121); /* oklch */ color: oklch(31.7% 0.149 282.6);
Tailwind
colors: {
custom: {
50: '#705aa1',
500: '#2d1b79',
950: '#000000',
},
}SCSS
$custom: #2d1b79; $custom-light: #705aa1; $custom-dark: #000000;
JSON
{
"hex": "#2d1b79",
"rgb": {
"r": 45,
"g": 27,
"b": 121
},
"hsl": {
"h": 251.489,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.31671,
"c": 0.14864,
"h": 282.6
},
"luminance": 0.02722
}Semantic roles & 50–950 ramp
primary
#2D1B79
secondary
#99AD43
accent
#E741C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F