#2F1583#2F1583
#2F1583 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.166 H 282.6°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1583 |
|---|---|
| RGB | rgb(47, 21, 131) |
| HSL | hsl(254, 72%, 30%) |
| HSV | hsv(254, 84%, 51%) |
| CMYK | cmyk(64.1%, 84%, 0%, 48.6%) |
| CIE-LAB | lab(19.14, 42.37, -56.27) |
| CIE-LCH | lch(19.14, 70.43, 306.98°) |
| OKLab | oklab(32.21% 0.0364 -0.1623) |
| OKLCH | oklch(32.21% 0.166 282.6) |
| XYZ | xyz(5.5359, 2.7790, 21.7130) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.88
Royal
#0C1793
ΔE00 3.71
Midnight Blue
#191970
ΔE00 4.37
Darkblue
#00008B
ΔE00 4.52
Navy
#000080
ΔE00 4.75
Indigo
#4B0082
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1583 #698315
analogous
#153283 #2F1583 #661583
triadic
#2F1583 #832F15 #15832F
tetradic
#2F1583 #831532 #698315 #158366
square
#2F1583 #831532 #698315 #158366
split-complementary
#2F1583 #836615 #328315
monochromatic
#09041A #1C0D4E #2F1583 #421DB8 #5C34DE
Accessibility & contrast
On white
13.50
#2F1583 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2F1583 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1583
13.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1583 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1583 | 1.00 | 13.50 | 1.56 | 13.50 |
| #FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f1583; /* rgb */ color: rgb(47, 21, 131); /* oklch */ color: oklch(32.2% 0.166 282.6);
Tailwind
colors: {
custom: {
50: '#7457a8',
500: '#2f1583',
950: '#000000',
},
}SCSS
$custom: #2f1583; $custom-light: #7457a8; $custom-dark: #000000;
JSON
{
"hex": "#2f1583",
"rgb": {
"r": 47,
"g": 21,
"b": 131
},
"hsl": {
"h": 254.182,
"s": 72.368,
"l": 29.804
},
"oklch": {
"l": 0.32214,
"c": 0.16632,
"h": 282.6
},
"luminance": 0.02779
}Semantic roles & 50–950 ramp
primary
#2F1583
secondary
#9AB83C
accent
#EF39C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F