#2F1B85#2F1B85
#2F1B85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.163 H 281.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B85 |
|---|---|
| RGB | rgb(47, 27, 133) |
| HSL | hsl(251, 66%, 31%) |
| HSV | hsv(251, 80%, 52%) |
| CMYK | cmyk(64.7%, 79.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.37, 40.06, -55.50) |
| CIE-LCH | lch(20.37, 68.44, 305.82°) |
| OKLab | oklab(33.14% 0.0322 -0.1601) |
| OKLCH | oklch(33.14% 0.163 281.4) |
| XYZ | xyz(5.7965, 3.0812, 22.4750) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.50
Indigo (survey)
#380282
ΔE00 4.02
Midnight Blue
#191970
ΔE00 4.24
Darkblue
#00008B
ΔE00 5.29
Navy
#000080
ΔE00 5.62
Cobalt Blue
#030AA7
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B85 #71851B
analogous
#1B3C85 #2F1B85 #641B85
triadic
#2F1B85 #852F1B #1B852F
tetradic
#2F1B85 #851B3C #71851B #1B8564
square
#2F1B85 #851B3C #71851B #1B8564
split-complementary
#2F1B85 #85641B #3C851B
monochromatic
#0B061F #1D1152 #2F1B85 #4125B8 #5E42D9
Accessibility & contrast
On white
12.99
#2F1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2F1B85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B85
12.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B85 | 1.00 | 12.99 | 1.62 | 12.99 |
| #FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1b85; /* rgb */ color: rgb(47, 27, 133); /* oklch */ color: oklch(33.1% 0.163 281.4);
Tailwind
colors: {
custom: {
50: '#745baa',
500: '#2f1b85',
950: '#000000',
},
}SCSS
$custom: #2f1b85; $custom-light: #745baa; $custom-dark: #000000;
JSON
{
"hex": "#2f1b85",
"rgb": {
"r": 47,
"g": 27,
"b": 133
},
"hsl": {
"h": 251.321,
"s": 66.25,
"l": 31.373
},
"oklch": {
"l": 0.33135,
"c": 0.16334,
"h": 281.4
},
"luminance": 0.03082
}Semantic roles & 50–950 ramp
primary
#2F1B85
secondary
#A2B844
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F