#2D0D4C#2D0D4C
#2D0D4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.108 H 302.1°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2D0D4C |
|---|---|
| RGB | rgb(45, 13, 76) |
| HSL | hsl(270, 71%, 17%) |
| HSV | hsv(270, 83%, 30%) |
| CMYK | cmyk(40.8%, 82.9%, 0%, 70.2%) |
| CIE-LAB | lab(11.74, 29.73, -32.17) |
| CIE-LCH | lch(11.74, 43.80, 312.74°) |
| OKLab | oklab(25.25% 0.0576 -0.0918) |
| OKLCH | oklch(25.25% 0.108 302.1) |
| XYZ | xyz(2.5303, 1.3675, 6.9667) |
| Luminance | 0.0137 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.97
Dark Violet
#34013F
ΔE00 4.66
Midnight Purple
#280137
ΔE00 4.71
Dark Purple
#35063E
ΔE00 4.92
Deep Purple
#36013F
ΔE00 5.05
Very Dark Purple
#2A0134
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D0D4C #2C4C0D
analogous
#0D0D4C #2D0D4C #4C0D4C
triadic
#2D0D4C #4C2D0D #0D4C2D
tetradic
#2D0D4C #4C0D0D #2C4C0D #0D4C4C
square
#2D0D4C #4C0D0D #2C4C0D #0D4C4C
split-complementary
#2D0D4C #4C4C0D #0D4C0D
monochromatic
#0F041A #0F041A #2D0D4C #4C1680 #6B1FB5
Accessibility & contrast
On white
16.49
#2D0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.27
#2D0D4C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D0D4C
16.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D0D4C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D0D4C | 1.00 | 16.49 | 1.27 | 16.49 |
| #FFFFFF | 16.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#261D2C
Achromatopsia (no color)
#1F1F1F
Design tokens & code
CSS
--color: #2d0d4c; /* rgb */ color: rgb(45, 13, 76); /* oklch */ color: oklch(25.3% 0.108 302.1);
Tailwind
colors: {
custom: {
50: '#6a4f7f',
500: '#2d0d4c',
950: '#000000',
},
}SCSS
$custom: #2d0d4c; $custom-light: #6a4f7f; $custom-dark: #000000;
JSON
{
"hex": "#2d0d4c",
"rgb": {
"r": 45,
"g": 13,
"b": 76
},
"hsl": {
"h": 270.476,
"s": 70.787,
"l": 17.451
},
"oklch": {
"l": 0.25253,
"c": 0.10836,
"h": 302.1
},
"luminance": 0.01368
}Semantic roles & 50–950 ramp
primary
#2D0D4C
secondary
#5A872E
accent
#EE3A92
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C