#2F1A83#2F1A83
#2F1A83 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.162 H 281.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1A83 |
|---|---|
| RGB | rgb(47, 26, 131) |
| HSL | hsl(252, 67%, 31%) |
| HSV | hsv(252, 80%, 51%) |
| CMYK | cmyk(64.1%, 80.2%, 0%, 48.6%) |
| CIE-LAB | lab(19.97, 39.95, -54.89) |
| CIE-LCH | lch(19.97, 67.89, 306.05°) |
| OKLab | oklab(32.79% 0.0334 -0.1583) |
| OKLCH | oklch(32.79% 0.162 281.9) |
| XYZ | xyz(5.6371, 2.9814, 21.7467) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.68
Indigo (survey)
#380282
ΔE00 3.81
Midnight Blue
#191970
ΔE00 4.06
Darkblue
#00008B
ΔE00 5.22
Navy
#000080
ΔE00 5.46
Indigo
#4B0082
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1A83 #6E831A
analogous
#1A3983 #2F1A83 #631A83
triadic
#2F1A83 #832F1A #1A832F
tetradic
#2F1A83 #831A39 #6E831A #1A8363
square
#2F1A83 #831A39 #6E831A #1A8363
split-complementary
#2F1A83 #83631A #39831A
monochromatic
#0A061D #1D1050 #2F1A83 #4124B6 #5D3FD9
Accessibility & contrast
On white
13.15
#2F1A83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1A83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1A83
13.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1A83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1A83 | 1.00 | 13.15 | 1.60 | 13.15 |
| #FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1a83; /* rgb */ color: rgb(47, 26, 131); /* oklch */ color: oklch(32.8% 0.162 281.9);
Tailwind
colors: {
custom: {
50: '#745aa8',
500: '#2f1a83',
950: '#000000',
},
}SCSS
$custom: #2f1a83; $custom-light: #745aa8; $custom-dark: #000000;
JSON
{
"hex": "#2f1a83",
"rgb": {
"r": 47,
"g": 26,
"b": 131
},
"hsl": {
"h": 252,
"s": 66.879,
"l": 30.784
},
"oklch": {
"l": 0.32793,
"c": 0.16184,
"h": 281.9
},
"luminance": 0.02982
}Semantic roles & 50–950 ramp
primary
#2F1A83
secondary
#9FB742
accent
#EA3EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F