#2D1C76#2D1C76
#2D1C76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.144 H 283.0°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1C76 |
|---|---|
| RGB | rgb(45, 28, 118) |
| HSL | hsl(251, 62%, 29%) |
| HSV | hsv(251, 76%, 46%) |
| CMYK | cmyk(61.9%, 76.3%, 0%, 53.7%) |
| CIE-LAB | lab(18.78, 34.46, -48.57) |
| CIE-LCH | lch(18.78, 59.55, 305.35°) |
| OKLab | oklab(31.5% 0.0324 -0.14) |
| OKLCH | oklch(31.5% 0.144 283) |
| XYZ | xyz(4.7664, 2.6961, 17.4053) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.72
Indigo (survey)
#380282
ΔE00 5.01
Royal
#0C1793
ΔE00 5.32
Dark Royal Blue
#02066F
ΔE00 5.59
Deep Blue
#040273
ΔE00 5.93
Darkblue (survey)
#030764
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1C76 #65761C
analogous
#1C3876 #2D1C76 #5A1C76
triadic
#2D1C76 #762D1C #1C762D
tetradic
#2D1C76 #761C38 #65761C #1C765A
square
#2D1C76 #761C38 #65761C #1C765A
split-complementary
#2D1C76 #765A1C #38761C
monochromatic
#090619 #1A1045 #2D1C76 #4028A7 #583CD1
Accessibility & contrast
On white
13.64
#2D1C76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2D1C76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1C76
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1C76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1C76 | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2d1c76; /* rgb */ color: rgb(45, 28, 118); /* oklch */ color: oklch(31.5% 0.144 283.0);
Tailwind
colors: {
custom: {
50: '#705a9e',
500: '#2d1c76',
950: '#000000',
},
}SCSS
$custom: #2d1c76; $custom-light: #705a9e; $custom-dark: #000000;
JSON
{
"hex": "#2d1c76",
"rgb": {
"r": 45,
"g": 28,
"b": 118
},
"hsl": {
"h": 251.333,
"s": 61.644,
"l": 28.627
},
"oklch": {
"l": 0.31498,
"c": 0.14368,
"h": 283
},
"luminance": 0.02696
}Semantic roles & 50–950 ramp
primary
#2D1C76
secondary
#97AA44
accent
#E543C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E