#2D1D6E#2D1D6E
#2D1D6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.8% C 0.132 H 284.6°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1D6E |
|---|---|
| RGB | rgb(45, 29, 110) |
| HSL | hsl(252, 58%, 27%) |
| HSV | hsv(252, 74%, 43%) |
| CMYK | cmyk(59.1%, 73.6%, 0%, 56.9%) |
| CIE-LAB | lab(18.20, 31.24, -44.37) |
| CIE-LCH | lch(18.20, 54.26, 305.15°) |
| OKLab | oklab(30.84% 0.0334 -0.1277) |
| OKLCH | oklch(30.84% 0.132 284.6) |
| XYZ | xyz(4.3352, 2.5621, 15.0149) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Dark Indigo
#1F0954
ΔE00 5.74
Darkblue (survey)
#030764
ΔE00 6.06
Indigo (survey)
#380282
ΔE00 6.07
Dark Royal Blue
#02066F
ΔE00 6.07
Deep Blue
#040273
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1D6E #5E6E1D
analogous
#1D366E #2D1D6E #561D6E
triadic
#2D1D6E #6E2D1D #1D6E2D
tetradic
#2D1D6E #6E1D36 #5E6E1D #1D6E56
square
#2D1D6E #6E1D36 #5E6E1D #1D6E56
split-complementary
#2D1D6E #6E561D #366E1D
monochromatic
#0A0618 #19103E #2D1D6E #412A9E #573ACB
Accessibility & contrast
On white
13.89
#2D1D6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2D1D6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1D6E
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1D6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1D6E | 1.00 | 13.89 | 1.51 | 13.89 |
| #FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#0D3243
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2d1d6e; /* rgb */ color: rgb(45, 29, 110); /* oklch */ color: oklch(30.8% 0.132 284.6);
Tailwind
colors: {
custom: {
50: '#6e5a98',
500: '#2d1d6e',
950: '#000000',
},
}SCSS
$custom: #2d1d6e; $custom-light: #6e5a98; $custom-dark: #000000;
JSON
{
"hex": "#2d1d6e",
"rgb": {
"r": 45,
"g": 29,
"b": 110
},
"hsl": {
"h": 251.852,
"s": 58.273,
"l": 27.255
},
"oklch": {
"l": 0.30839,
"c": 0.13195,
"h": 284.6
},
"luminance": 0.02562
}Semantic roles & 50–950 ramp
primary
#2D1D6E
secondary
#90A244
accent
#E146C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E