#2D0F76#2D0F76
#2D0F76 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.156 H 285.3°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2D0F76 |
|---|---|
| RGB | rgb(45, 15, 118) |
| HSL | hsl(257, 77%, 26%) |
| HSV | hsv(257, 87%, 46%) |
| CMYK | cmyk(61.9%, 87.3%, 0%, 53.7%) |
| CIE-LAB | lab(16.54, 40.92, -52.27) |
| CIE-LCH | lch(16.54, 66.38, 308.05°) |
| OKLab | oklab(29.94% 0.0411 -0.1506) |
| OKLCH | oklch(29.94% 0.156 285.3) |
| XYZ | xyz(4.5220, 2.2073, 17.3238) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.82
Midnight Blue
#191970
ΔE00 3.93
Deep Blue
#040273
ΔE00 4.15
Dark Royal Blue
#02066F
ΔE00 4.19
Navy
#000080
ΔE00 4.41
Darkblue
#00008B
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D0F76 #58760F
analogous
#0F2476 #2D0F76 #600F76
triadic
#2D0F76 #762D0F #0F762D
tetradic
#2D0F76 #760F24 #58760F #0F7660
square
#2D0F76 #760F24 #58760F #0F7660
split-complementary
#2D0F76 #76600F #24760F
monochromatic
#0A031B #180840 #2D0F76 #4216AC #571DE2
Accessibility & contrast
On white
14.57
#2D0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2D0F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D0F76
14.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D0F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D0F76 | 1.00 | 14.57 | 1.44 | 14.57 |
| #FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#013044
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2d0f76; /* rgb */ color: rgb(45, 15, 118); /* oklch */ color: oklch(29.9% 0.156 285.3);
Tailwind
colors: {
custom: {
50: '#71539f',
500: '#2d0f76',
950: '#000000',
},
}SCSS
$custom: #2d0f76; $custom-light: #71539f; $custom-dark: #000000;
JSON
{
"hex": "#2d0f76",
"rgb": {
"r": 45,
"g": 15,
"b": 118
},
"hsl": {
"h": 257.476,
"s": 77.444,
"l": 26.078
},
"oklch": {
"l": 0.29935,
"c": 0.15613,
"h": 285.3
},
"luminance": 0.02208
}Semantic roles & 50–950 ramp
primary
#2D0F76
secondary
#8AAD33
accent
#F434BC
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#09030F
muted
#7B787E