#2D1676#2D1676
#2D1676 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.150 H 284.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1676 |
|---|---|
| RGB | rgb(45, 22, 118) |
| HSL | hsl(254, 69%, 27%) |
| HSV | hsv(254, 81%, 46%) |
| CMYK | cmyk(61.9%, 81.4%, 0%, 53.7%) |
| CIE-LAB | lab(17.64, 37.70, -50.45) |
| CIE-LCH | lch(17.64, 62.98, 306.77°) |
| OKLab | oklab(30.7% 0.0369 -0.1454) |
| OKLCH | oklch(30.7% 0.15 284.2) |
| XYZ | xyz(4.6381, 2.4394, 17.3625) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.11
Indigo (survey)
#380282
ΔE00 3.79
Dark Royal Blue
#02066F
ΔE00 4.73
Deep Blue
#040273
ΔE00 4.91
Royal
#0C1793
ΔE00 5.17
Navy
#000080
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1676 #5F7616
analogous
#162F76 #2D1676 #5D1676
triadic
#2D1676 #762D16 #16762D
tetradic
#2D1676 #76162F #5F7616 #16765D
square
#2D1676 #76162F #5F7616 #16765D
split-complementary
#2D1676 #765D16 #2F7616
monochromatic
#0A051A #190C42 #2D1676 #4120AA #572ED8
Accessibility & contrast
On white
14.11
#2D1676 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2D1676 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1676
14.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1676 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1676 | 1.00 | 14.11 | 1.49 | 14.11 |
| #FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2d1676; /* rgb */ color: rgb(45, 22, 118); /* oklch */ color: oklch(30.7% 0.150 284.2);
Tailwind
colors: {
custom: {
50: '#70579f',
500: '#2d1676',
950: '#000000',
},
}SCSS
$custom: #2d1676; $custom-light: #70579f; $custom-dark: #000000;
JSON
{
"hex": "#2d1676",
"rgb": {
"r": 45,
"g": 22,
"b": 118
},
"hsl": {
"h": 254.375,
"s": 68.571,
"l": 27.451
},
"oklch": {
"l": 0.30697,
"c": 0.15001,
"h": 284.2
},
"luminance": 0.0244
}Semantic roles & 50–950 ramp
primary
#2D1676
secondary
#91AC3C
accent
#EB3CC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E