#2D1D7C#2D1D7C
#2D1D7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.150 H 281.6°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1D7C |
|---|---|
| RGB | rgb(45, 29, 124) |
| HSL | hsl(250, 62%, 30%) |
| HSV | hsv(250, 77%, 49%) |
| CMYK | cmyk(63.7%, 76.6%, 0%, 51.4%) |
| CIE-LAB | lab(19.60, 35.84, -51.06) |
| CIE-LCH | lch(19.60, 62.38, 305.07°) |
| OKLab | oklab(32.27% 0.0302 -0.1472) |
| OKLCH | oklch(32.27% 0.15 281.6) |
| XYZ | xyz(5.1585, 2.8915, 19.3512) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.08
Royal
#0C1793
ΔE00 4.50
Indigo (survey)
#380282
ΔE00 4.82
Dark Royal Blue
#02066F
ΔE00 5.81
Navy
#000080
ΔE00 6.05
Deep Blue
#040273
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1D7C #6C7C1D
analogous
#1D3D7C #2D1D7C #5C1D7C
triadic
#2D1D7C #7C2D1D #1D7C2D
tetradic
#2D1D7C #7C1D3D #6C7C1D #1D7C5C
square
#2D1D7C #7C1D3D #6C7C1D #1D7C5C
split-complementary
#2D1D7C #7C5C1D #3D7C1D
monochromatic
#090619 #1B114A #2D1D7C #3F29AE #5941D3
Accessibility & contrast
On white
13.30
#2D1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2D1D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1D7C
13.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1D7C | 1.00 | 13.30 | 1.58 | 13.30 |
| #FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2d1d7c; /* rgb */ color: rgb(45, 29, 124); /* oklch */ color: oklch(32.3% 0.150 281.6);
Tailwind
colors: {
custom: {
50: '#715ba3',
500: '#2d1d7c',
950: '#000000',
},
}SCSS
$custom: #2d1d7c; $custom-light: #715ba3; $custom-dark: #000000;
JSON
{
"hex": "#2d1d7c",
"rgb": {
"r": 45,
"g": 29,
"b": 124
},
"hsl": {
"h": 250.105,
"s": 62.092,
"l": 30
},
"oklch": {
"l": 0.32266,
"c": 0.15031,
"h": 281.6
},
"luminance": 0.02892
}Semantic roles & 50–950 ramp
primary
#2D1D7C
secondary
#9EB045
accent
#E543CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F