#2F1B86#2F1B86
#2F1B86 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.165 H 281.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B86 |
|---|---|
| RGB | rgb(47, 27, 134) |
| HSL | hsl(251, 66%, 32%) |
| HSV | hsv(251, 80%, 53%) |
| CMYK | cmyk(64.9%, 79.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.48, 40.37, -55.95) |
| CIE-LCH | lch(20.48, 68.99, 305.81°) |
| OKLab | oklab(33.24% 0.0319 -0.1614) |
| OKLCH | oklch(33.24% 0.165 281.2) |
| XYZ | xyz(5.8659, 3.1090, 22.8406) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.41
Indigo (survey)
#380282
ΔE00 4.03
Midnight Blue
#191970
ΔE00 4.35
Darkblue
#00008B
ΔE00 5.26
Cobalt Blue
#030AA7
ΔE00 5.52
Navy
#000080
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B86 #72861B
analogous
#1B3D86 #2F1B86 #651B86
triadic
#2F1B86 #862F1B #1B862F
tetradic
#2F1B86 #861B3D #72861B #1B8665
square
#2F1B86 #861B3D #72861B #1B8665
split-complementary
#2F1B86 #86651B #3D861B
monochromatic
#0B0620 #1D1153 #2F1B86 #4125B9 #5F42D9
Accessibility & contrast
On white
12.95
#2F1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2F1B86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B86
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B86 | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1b86; /* rgb */ color: rgb(47, 27, 134); /* oklch */ color: oklch(33.2% 0.165 281.2);
Tailwind
colors: {
custom: {
50: '#745baa',
500: '#2f1b86',
950: '#000000',
},
}SCSS
$custom: #2f1b86; $custom-light: #745baa; $custom-dark: #000000;
JSON
{
"hex": "#2f1b86",
"rgb": {
"r": 47,
"g": 27,
"b": 134
},
"hsl": {
"h": 251.215,
"s": 66.46,
"l": 31.569
},
"oklch": {
"l": 0.33243,
"c": 0.16456,
"h": 281.2
},
"luminance": 0.03109
}Semantic roles & 50–950 ramp
primary
#2F1B86
secondary
#A3B944
accent
#E93EC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F