#2F1C7D#2F1C7D
#2F1C7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.152 H 282.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1C7D |
|---|---|
| RGB | rgb(47, 28, 125) |
| HSL | hsl(252, 63%, 30%) |
| HSV | hsv(252, 78%, 49%) |
| CMYK | cmyk(62.4%, 77.6%, 0%, 51%) |
| CIE-LAB | lab(19.70, 36.99, -51.53) |
| CIE-LCH | lch(19.70, 63.43, 305.68°) |
| OKLab | oklab(32.41% 0.0338 -0.1486) |
| OKLCH | oklch(32.41% 0.152 282.8) |
| XYZ | xyz(5.2881, 2.9152, 19.6821) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.41
Indigo (survey)
#380282
ΔE00 4.40
Royal
#0C1793
ΔE00 4.48
Dark Royal Blue
#02066F
ΔE00 5.83
Navy
#000080
ΔE00 5.94
Darkblue
#00008B
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1C7D #6A7D1C
analogous
#1C397D #2F1C7D #601C7D
triadic
#2F1C7D #7D2F1C #1C7D2F
tetradic
#2F1C7D #7D1C39 #6A7D1C #1C7D60
square
#2F1C7D #7D1C39 #6A7D1C #1C7D60
split-complementary
#2F1C7D #7D601C #397D1C
monochromatic
#090619 #1C114B #2F1C7D #4227AF #5C3FD4
Accessibility & contrast
On white
13.26
#2F1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F1C7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1C7D
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1C7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1C7D | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1c7d; /* rgb */ color: rgb(47, 28, 125); /* oklch */ color: oklch(32.4% 0.152 282.8);
Tailwind
colors: {
custom: {
50: '#725ba4',
500: '#2f1c7d',
950: '#000000',
},
}SCSS
$custom: #2f1c7d; $custom-light: #725ba4; $custom-dark: #000000;
JSON
{
"hex": "#2f1c7d",
"rgb": {
"r": 47,
"g": 28,
"b": 125
},
"hsl": {
"h": 251.753,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.32413,
"c": 0.15235,
"h": 282.8
},
"luminance": 0.02916
}Semantic roles & 50–950 ramp
primary
#2F1C7D
secondary
#9BB144
accent
#E641C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F