#2D1C70#2D1C70
#2D1C70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.136 H 284.4°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1C70 |
|---|---|
| RGB | rgb(45, 28, 112) |
| HSL | hsl(252, 60%, 27%) |
| HSV | hsv(252, 75%, 44%) |
| CMYK | cmyk(59.8%, 75%, 0%, 56.1%) |
| CIE-LAB | lab(18.18, 32.50, -45.69) |
| CIE-LCH | lch(18.18, 56.07, 305.42°) |
| OKLab | oklab(30.89% 0.0338 -0.1315) |
| OKLCH | oklch(30.89% 0.136 284.4) |
| XYZ | xyz(4.4212, 2.5580, 15.5869) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.75
Indigo (survey)
#380282
ΔE00 5.60
Dark Royal Blue
#02066F
ΔE00 5.77
Dark Indigo
#1F0954
ΔE00 5.81
Darkblue (survey)
#030764
ΔE00 5.88
Deep Blue
#040273
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1C70 #5F701C
analogous
#1C3570 #2D1C70 #571C70
triadic
#2D1C70 #702D1C #1C702D
tetradic
#2D1C70 #701C35 #5F701C #1C7057
square
#2D1C70 #701C35 #5F701C #1C7057
split-complementary
#2D1C70 #70571C #35701C
monochromatic
#0A0618 #19103F #2D1C70 #4128A1 #5739CD
Accessibility & contrast
On white
13.89
#2D1C70 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2D1C70 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1C70
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1C70 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1C70 | 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)
#002F72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#0A3344
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2d1c70; /* rgb */ color: rgb(45, 28, 112); /* oklch */ color: oklch(30.9% 0.136 284.4);
Tailwind
colors: {
custom: {
50: '#6e5a9a',
500: '#2d1c70',
950: '#000000',
},
}SCSS
$custom: #2d1c70; $custom-light: #6e5a9a; $custom-dark: #000000;
JSON
{
"hex": "#2d1c70",
"rgb": {
"r": 45,
"g": 28,
"b": 112
},
"hsl": {
"h": 252.143,
"s": 60,
"l": 27.451
},
"oklch": {
"l": 0.30886,
"c": 0.13583,
"h": 284.4
},
"luminance": 0.02558
}Semantic roles & 50–950 ramp
primary
#2D1C70
secondary
#91A543
accent
#E345C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E