#2D1C7D#2D1C7D
#2D1C7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 281.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1C7D |
|---|---|
| RGB | rgb(45, 28, 125) |
| HSL | hsl(251, 63%, 30%) |
| HSV | hsv(251, 78%, 49%) |
| CMYK | cmyk(64%, 77.6%, 0%, 51%) |
| CIE-LAB | lab(19.51, 36.73, -51.85) |
| CIE-LCH | lch(19.51, 63.54, 305.31°) |
| OKLab | oklab(32.23% 0.0307 -0.1496) |
| OKLCH | oklch(32.23% 0.153 281.6) |
| XYZ | xyz(5.1980, 2.8687, 19.6779) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.18
Royal
#0C1793
ΔE00 4.31
Indigo (survey)
#380282
ΔE00 4.54
Dark Royal Blue
#02066F
ΔE00 5.67
Navy
#000080
ΔE00 5.81
Darkblue
#00008B
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1C7D #6C7D1C
analogous
#1C3C7D #2D1C7D #5D1C7D
triadic
#2D1C7D #7D2D1C #1C7D2D
tetradic
#2D1C7D #7D1C3C #6C7D1C #1C7D5D
square
#2D1C7D #7D1C3C #6C7D1C #1C7D5D
split-complementary
#2D1C7D #7D5D1C #3C7D1C
monochromatic
#090619 #1B114B #2D1C7D #3F27AF #593FD4
Accessibility & contrast
On white
13.34
#2D1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2D1C7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1C7D
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1C7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1C7D | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2d1c7d; /* rgb */ color: rgb(45, 28, 125); /* oklch */ color: oklch(32.2% 0.153 281.6);
Tailwind
colors: {
custom: {
50: '#715ba4',
500: '#2d1c7d',
950: '#000000',
},
}SCSS
$custom: #2d1c7d; $custom-light: #715ba4; $custom-dark: #000000;
JSON
{
"hex": "#2d1c7d",
"rgb": {
"r": 45,
"g": 28,
"b": 125
},
"hsl": {
"h": 250.515,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.32231,
"c": 0.15267,
"h": 281.6
},
"luminance": 0.02869
}Semantic roles & 50–950 ramp
primary
#2D1C7D
secondary
#9EB144
accent
#E641CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F