#2F1D7E#2F1D7E
#2F1D7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.153 H 282.4°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1D7E |
|---|---|
| RGB | rgb(47, 29, 126) |
| HSL | hsl(251, 63%, 30%) |
| HSV | hsv(251, 77%, 49%) |
| CMYK | cmyk(62.7%, 77%, 0%, 50.6%) |
| CIE-LAB | lab(20.00, 36.76, -51.67) |
| CIE-LCH | lch(20.00, 63.42, 305.43°) |
| OKLab | oklab(32.66% 0.0328 -0.149) |
| OKLCH | oklch(32.66% 0.153 282.4) |
| XYZ | xyz(5.3764, 2.9891, 20.0283) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.48
Royal
#0C1793
ΔE00 4.41
Indigo (survey)
#380282
ΔE00 4.59
Dark Royal Blue
#02066F
ΔE00 6.02
Darkblue
#00008B
ΔE00 6.05
Navy
#000080
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1D7E #6C7E1D
analogous
#1D3B7E #2F1D7E #5F1D7E
triadic
#2F1D7E #7E2F1D #1D7E2F
tetradic
#2F1D7E #7E1D3B #6C7E1D #1D7E5F
square
#2F1D7E #7E1D3B #6C7E1D #1D7E5F
split-complementary
#2F1D7E #7E5F1D #3B7E1D
monochromatic
#0A061B #1C124C #2F1D7E #4228B0 #5D42D3
Accessibility & contrast
On white
13.14
#2F1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1D7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1D7E
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1D7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1D7E | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1d7e; /* rgb */ color: rgb(47, 29, 126); /* oklch */ color: oklch(32.7% 0.153 282.4);
Tailwind
colors: {
custom: {
50: '#725ba4',
500: '#2f1d7e',
950: '#000000',
},
}SCSS
$custom: #2f1d7e; $custom-light: #725ba4; $custom-dark: #000000;
JSON
{
"hex": "#2f1d7e",
"rgb": {
"r": 47,
"g": 29,
"b": 126
},
"hsl": {
"h": 251.134,
"s": 62.581,
"l": 30.392
},
"oklch": {
"l": 0.32655,
"c": 0.15254,
"h": 282.4
},
"luminance": 0.02989
}Semantic roles & 50–950 ramp
primary
#2F1D7E
secondary
#9DB145
accent
#E642C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F