#2F1C81#2F1C81
#2F1C81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.157 H 282.0°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1C81 |
|---|---|
| RGB | rgb(47, 28, 129) |
| HSL | hsl(251, 64%, 31%) |
| HSV | hsv(251, 78%, 51%) |
| CMYK | cmyk(63.6%, 78.3%, 0%, 49.4%) |
| CIE-LAB | lab(20.12, 38.27, -53.38) |
| CIE-LCH | lch(20.12, 65.68, 305.64°) |
| OKLab | oklab(32.84% 0.0327 -0.1539) |
| OKLCH | oklch(32.84% 0.157 282) |
| XYZ | xyz(5.5488, 3.0194, 21.0550) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.78
Royal
#0C1793
ΔE00 3.98
Indigo (survey)
#380282
ΔE00 4.27
Darkblue
#00008B
ΔE00 5.66
Navy
#000080
ΔE00 5.82
Dark Royal Blue
#02066F
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1C81 #6E811C
analogous
#1C3B81 #2F1C81 #611C81
triadic
#2F1C81 #812F1C #1C812F
tetradic
#2F1C81 #811C3B #6E811C #1C8161
square
#2F1C81 #811C3B #6E811C #1C8161
split-complementary
#2F1C81 #81611C #3B811C
monochromatic
#0A061C #1D114F #2F1C81 #4127B3 #5D42D6
Accessibility & contrast
On white
13.09
#2F1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1C81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1C81
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1C81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1C81 | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1c81; /* rgb */ color: rgb(47, 28, 129); /* oklch */ color: oklch(32.8% 0.157 282.0);
Tailwind
colors: {
custom: {
50: '#735ba7',
500: '#2f1c81',
950: '#000000',
},
}SCSS
$custom: #2f1c81; $custom-light: #735ba7; $custom-dark: #000000;
JSON
{
"hex": "#2f1c81",
"rgb": {
"r": 47,
"g": 28,
"b": 129
},
"hsl": {
"h": 251.287,
"s": 64.331,
"l": 30.784
},
"oklch": {
"l": 0.32835,
"c": 0.15738,
"h": 282
},
"luminance": 0.0302
}Semantic roles & 50–950 ramp
primary
#2F1C81
secondary
#9FB444
accent
#E740C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F