#2F1786#2F1786
#2F1786 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.168 H 281.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1786 |
|---|---|
| RGB | rgb(47, 23, 134) |
| HSL | hsl(253, 71%, 31%) |
| HSV | hsv(253, 83%, 53%) |
| CMYK | cmyk(64.9%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(19.79, 42.34, -57.07) |
| CIE-LCH | lch(19.79, 71.07, 306.57°) |
| OKLab | oklab(32.77% 0.0343 -0.1647) |
| OKLCH | oklch(32.77% 0.168 281.7) |
| XYZ | xyz(5.7804, 2.9379, 22.8121) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.27
Royal
#0C1793
ΔE00 3.37
Midnight Blue
#191970
ΔE00 4.55
Darkblue
#00008B
ΔE00 4.65
Navy
#000080
ΔE00 5.03
Cobalt Blue
#030AA7
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1786 #6E8617
analogous
#173686 #2F1786 #661786
triadic
#2F1786 #862F17 #17862F
tetradic
#2F1786 #861736 #6E8617 #178666
square
#2F1786 #861736 #6E8617 #178666
split-complementary
#2F1786 #866617 #368617
monochromatic
#0A051E #1D0E52 #2F1786 #4120BA #5D3ADD
Accessibility & contrast
On white
13.23
#2F1786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1786
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1786 | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1786; /* rgb */ color: rgb(47, 23, 134); /* oklch */ color: oklch(32.8% 0.168 281.7);
Tailwind
colors: {
custom: {
50: '#7459aa',
500: '#2f1786',
950: '#000000',
},
}SCSS
$custom: #2f1786; $custom-light: #7459aa; $custom-dark: #000000;
JSON
{
"hex": "#2f1786",
"rgb": {
"r": 47,
"g": 23,
"b": 134
},
"hsl": {
"h": 252.973,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.3277,
"c": 0.16819,
"h": 281.7
},
"luminance": 0.02938
}Semantic roles & 50–950 ramp
primary
#2F1786
secondary
#9FBA3F
accent
#ED3AC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F