#2D1C7A#2D1C7A
#2D1C7A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.149 H 282.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1C7A |
|---|---|
| RGB | rgb(45, 28, 122) |
| HSL | hsl(251, 63%, 29%) |
| HSV | hsv(251, 77%, 48%) |
| CMYK | cmyk(63.1%, 77%, 0%, 52.2%) |
| CIE-LAB | lab(19.20, 35.76, -50.46) |
| CIE-LCH | lch(19.20, 61.84, 305.32°) |
| OKLab | oklab(31.92% 0.0314 -0.1455) |
| OKLCH | oklch(31.92% 0.149 282.2) |
| XYZ | xyz(5.0092, 2.7932, 18.6838) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.93
Indigo (survey)
#380282
ΔE00 4.71
Royal
#0C1793
ΔE00 4.72
Dark Royal Blue
#02066F
ΔE00 5.60
Deep Blue
#040273
ΔE00 5.86
Navy
#000080
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1C7A #697A1C
analogous
#1C3A7A #2D1C7A #5C1C7A
triadic
#2D1C7A #7A2D1C #1C7A2D
tetradic
#2D1C7A #7A1C3A #697A1C #1C7A5C
square
#2D1C7A #7A1C3A #697A1C #1C7A5C
split-complementary
#2D1C7A #7A5C1C #3A7A1C
monochromatic
#090619 #1B1148 #2D1C7A #3F27AC #593ED3
Accessibility & contrast
On white
13.47
#2D1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2D1C7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1C7A
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1C7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1C7A | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2d1c7a; /* rgb */ color: rgb(45, 28, 122); /* oklch */ color: oklch(31.9% 0.149 282.2);
Tailwind
colors: {
custom: {
50: '#715aa1',
500: '#2d1c7a',
950: '#000000',
},
}SCSS
$custom: #2d1c7a; $custom-light: #715aa1; $custom-dark: #000000;
JSON
{
"hex": "#2d1c7a",
"rgb": {
"r": 45,
"g": 28,
"b": 122
},
"hsl": {
"h": 250.851,
"s": 62.667,
"l": 29.412
},
"oklch": {
"l": 0.31915,
"c": 0.14884,
"h": 282.2
},
"luminance": 0.02794
}Semantic roles & 50–950 ramp
primary
#2D1C7A
secondary
#9BAE44
accent
#E642C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F