#2D1D6F#2D1D6F
#2D1D6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.133 H 284.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1D6F |
|---|---|
| RGB | rgb(45, 29, 111) |
| HSL | hsl(252, 59%, 27%) |
| HSV | hsv(252, 74%, 44%) |
| CMYK | cmyk(59.5%, 73.9%, 0%, 56.5%) |
| CIE-LAB | lab(18.29, 31.57, -44.86) |
| CIE-LCH | lch(18.29, 54.85, 305.14°) |
| OKLab | oklab(30.94% 0.0332 -0.1291) |
| OKLCH | oklch(30.94% 0.133 284.4) |
| XYZ | xyz(4.3899, 2.5841, 15.3033) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.82
Dark Indigo
#1F0954
ΔE00 5.85
Indigo (survey)
#380282
ΔE00 5.95
Dark Royal Blue
#02066F
ΔE00 6.01
Darkblue (survey)
#030764
ΔE00 6.05
Deep Blue
#040273
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1D6F #5F6F1D
analogous
#1D366F #2D1D6F #561D6F
triadic
#2D1D6F #6F2D1D #1D6F2D
tetradic
#2D1D6F #6F1D36 #5F6F1D #1D6F56
square
#2D1D6F #6F1D36 #5F6F1D #1D6F56
split-complementary
#2D1D6F #6F561D #366F1D
monochromatic
#0A0618 #19103E #2D1D6F #412AA0 #573BCC
Accessibility & contrast
On white
13.84
#2D1D6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2D1D6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1D6F
13.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1D6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1D6F | 1.00 | 13.84 | 1.52 | 13.84 |
| #FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#0C3343
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2d1d6f; /* rgb */ color: rgb(45, 29, 111); /* oklch */ color: oklch(30.9% 0.133 284.4);
Tailwind
colors: {
custom: {
50: '#6e5a99',
500: '#2d1d6f',
950: '#000000',
},
}SCSS
$custom: #2d1d6f; $custom-light: #6e5a99; $custom-dark: #000000;
JSON
{
"hex": "#2d1d6f",
"rgb": {
"r": 45,
"g": 29,
"b": 111
},
"hsl": {
"h": 251.707,
"s": 58.571,
"l": 27.451
},
"oklch": {
"l": 0.30938,
"c": 0.13329,
"h": 284.4
},
"luminance": 0.02584
}Semantic roles & 50–950 ramp
primary
#2D1D6F
secondary
#91A344
accent
#E246C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E