#2F1C86#2F1C86
#2F1C86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.164 H 281.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1C86 |
|---|---|
| RGB | rgb(47, 28, 134) |
| HSL | hsl(251, 65%, 32%) |
| HSV | hsv(251, 79%, 53%) |
| CMYK | cmyk(64.9%, 79.1%, 0%, 47.5%) |
| CIE-LAB | lab(20.66, 39.85, -55.65) |
| CIE-LCH | lch(20.66, 68.45, 305.61°) |
| OKLab | oklab(33.37% 0.0313 -0.1606) |
| OKLCH | oklch(33.37% 0.164 281) |
| XYZ | xyz(5.8893, 3.1556, 22.8484) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.45
Indigo (survey)
#380282
ΔE00 4.24
Midnight Blue
#191970
ΔE00 4.33
Darkblue
#00008B
ΔE00 5.42
Cobalt Blue
#030AA7
ΔE00 5.62
Navy
#000080
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1C86 #73861C
analogous
#1C3E86 #2F1C86 #641C86
triadic
#2F1C86 #862F1C #1C862F
tetradic
#2F1C86 #861C3E #73861C #1C8664
square
#2F1C86 #861C3E #73861C #1C8664
split-complementary
#2F1C86 #86641C #3E861C
monochromatic
#0B0721 #1D1153 #2F1C86 #4127B9 #5F44D8
Accessibility & contrast
On white
12.87
#2F1C86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2F1C86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1C86
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1C86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1C86 | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f1c86; /* rgb */ color: rgb(47, 28, 134); /* oklch */ color: oklch(33.4% 0.164 281.0);
Tailwind
colors: {
custom: {
50: '#745baa',
500: '#2f1c86',
950: '#000000',
},
}SCSS
$custom: #2f1c86; $custom-light: #745baa; $custom-dark: #000000;
JSON
{
"hex": "#2f1c86",
"rgb": {
"r": 47,
"g": 28,
"b": 134
},
"hsl": {
"h": 250.755,
"s": 65.432,
"l": 31.765
},
"oklch": {
"l": 0.3337,
"c": 0.16359,
"h": 281
},
"luminance": 0.03156
}Semantic roles & 50–950 ramp
primary
#2F1C86
secondary
#A4B945
accent
#E83FCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F