#2F1686#2F1686
#2F1686 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.169 H 281.9°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1686 |
|---|---|
| RGB | rgb(47, 22, 134) |
| HSL | hsl(253, 72%, 31%) |
| HSV | hsv(253, 84%, 53%) |
| CMYK | cmyk(64.9%, 83.6%, 0%, 47.5%) |
| CIE-LAB | lab(19.63, 42.81, -57.34) |
| CIE-LCH | lch(19.63, 71.55, 306.75°) |
| OKLab | oklab(32.66% 0.0348 -0.1654) |
| OKLCH | oklch(32.66% 0.169 281.9) |
| XYZ | xyz(5.7609, 2.8990, 22.8056) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.10
Royal
#0C1793
ΔE00 3.39
Darkblue
#00008B
ΔE00 4.52
Midnight Blue
#191970
ΔE00 4.61
Navy
#000080
ΔE00 4.90
Cobalt Blue
#030AA7
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1686 #6D8616
analogous
#163586 #2F1686 #671686
triadic
#2F1686 #862F16 #16862F
tetradic
#2F1686 #861635 #6D8616 #168667
square
#2F1686 #861635 #6D8616 #168667
split-complementary
#2F1686 #866716 #358616
monochromatic
#0A051D #1D0D51 #2F1686 #411FBB #5D38DE
Accessibility & contrast
On white
13.29
#2F1686 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F1686 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1686
13.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1686 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1686 | 1.00 | 13.29 | 1.58 | 13.29 |
| #FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1686; /* rgb */ color: rgb(47, 22, 134); /* oklch */ color: oklch(32.7% 0.169 281.9);
Tailwind
colors: {
custom: {
50: '#7558aa',
500: '#2f1686',
950: '#000000',
},
}SCSS
$custom: #2f1686; $custom-light: #7558aa; $custom-dark: #000000;
JSON
{
"hex": "#2f1686",
"rgb": {
"r": 47,
"g": 22,
"b": 134
},
"hsl": {
"h": 253.393,
"s": 71.795,
"l": 30.588
},
"oklch": {
"l": 0.3266,
"c": 0.16904,
"h": 281.9
},
"luminance": 0.02899
}Semantic roles & 50–950 ramp
primary
#2F1686
secondary
#9EBA3E
accent
#EF39C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F