#2F1B87#2F1B87
#2F1B87 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.166 H 281.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B87 |
|---|---|
| RGB | rgb(47, 27, 135) |
| HSL | hsl(251, 67%, 32%) |
| HSV | hsv(251, 80%, 53%) |
| CMYK | cmyk(65.2%, 80%, 0%, 47.1%) |
| CIE-LAB | lab(20.58, 40.68, -56.40) |
| CIE-LCH | lch(20.58, 69.54, 305.81°) |
| OKLab | oklab(33.35% 0.0316 -0.1627) |
| OKLCH | oklch(33.35% 0.166 281) |
| XYZ | xyz(5.9360, 3.1370, 23.2097) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.32
Indigo (survey)
#380282
ΔE00 4.05
Midnight Blue
#191970
ΔE00 4.47
Darkblue
#00008B
ΔE00 5.22
Cobalt Blue
#030AA7
ΔE00 5.40
Navy
#000080
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B87 #73871B
analogous
#1B3D87 #2F1B87 #651B87
triadic
#2F1B87 #872F1B #1B872F
tetradic
#2F1B87 #871B3D #73871B #1B8765
square
#2F1B87 #871B3D #73871B #1B8765
split-complementary
#2F1B87 #87651B #3D871B
monochromatic
#0B0721 #1D1154 #2F1B87 #4125BA #5F43D9
Accessibility & contrast
On white
12.90
#2F1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2F1B87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B87
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B87 | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f1b87; /* rgb */ color: rgb(47, 27, 135); /* oklch */ color: oklch(33.4% 0.166 281.0);
Tailwind
colors: {
custom: {
50: '#745bab',
500: '#2f1b87',
950: '#000000',
},
}SCSS
$custom: #2f1b87; $custom-light: #745bab; $custom-dark: #000000;
JSON
{
"hex": "#2f1b87",
"rgb": {
"r": 47,
"g": 27,
"b": 135
},
"hsl": {
"h": 251.111,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.33352,
"c": 0.16578,
"h": 281
},
"luminance": 0.03137
}Semantic roles & 50–950 ramp
primary
#2F1B87
secondary
#A4BA44
accent
#EA3ECA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F