#2F1D7F#2F1D7F
#2F1D7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.154 H 282.2°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1D7F |
|---|---|
| RGB | rgb(47, 29, 127) |
| HSL | hsl(251, 63%, 31%) |
| HSV | hsv(251, 77%, 50%) |
| CMYK | cmyk(63%, 77.2%, 0%, 50.2%) |
| CIE-LAB | lab(20.10, 37.08, -52.14) |
| CIE-LCH | lch(20.10, 63.98, 305.42°) |
| OKLab | oklab(32.76% 0.0325 -0.1503) |
| OKLCH | oklch(32.76% 0.154 282.2) |
| XYZ | xyz(5.4412, 3.0150, 20.3698) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.57
Royal
#0C1793
ΔE00 4.28
Indigo (survey)
#380282
ΔE00 4.55
Darkblue
#00008B
ΔE00 5.97
Dark Royal Blue
#02066F
ΔE00 6.05
Navy
#000080
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1D7F #6D7F1D
analogous
#1D3C7F #2F1D7F #601D7F
triadic
#2F1D7F #7F2F1D #1D7F2F
tetradic
#2F1D7F #7F1D3C #6D7F1D #1D7F60
square
#2F1D7F #7F1D3C #6D7F1D #1D7F60
split-complementary
#2F1D7F #7F601D #3C7F1D
monochromatic
#0A061B #1D124D #2F1D7F #4128B1 #5D42D4
Accessibility & contrast
On white
13.10
#2F1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1D7F
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1D7F | 1.00 | 13.10 | 1.60 | 13.10 |
| #FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1d7f; /* rgb */ color: rgb(47, 29, 127); /* oklch */ color: oklch(32.8% 0.154 282.2);
Tailwind
colors: {
custom: {
50: '#725ba5',
500: '#2f1d7f',
950: '#000000',
},
}SCSS
$custom: #2f1d7f; $custom-light: #725ba5; $custom-dark: #000000;
JSON
{
"hex": "#2f1d7f",
"rgb": {
"r": 47,
"g": 29,
"b": 127
},
"hsl": {
"h": 251.02,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.32759,
"c": 0.15381,
"h": 282.2
},
"luminance": 0.03015
}Semantic roles & 50–950 ramp
primary
#2F1D7F
secondary
#9EB245
accent
#E642C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F