#2F1886#2F1886
#2F1886 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.167 H 281.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1886 |
|---|---|
| RGB | rgb(47, 24, 134) |
| HSL | hsl(253, 70%, 31%) |
| HSV | hsv(253, 82%, 53%) |
| CMYK | cmyk(64.9%, 82.1%, 0%, 47.5%) |
| CIE-LAB | lab(19.96, 41.87, -56.80) |
| CIE-LCH | lch(19.96, 70.57, 306.39°) |
| OKLab | oklab(32.88% 0.0337 -0.1639) |
| OKLCH | oklch(32.88% 0.167 281.6) |
| XYZ | xyz(5.8006, 2.9784, 22.8188) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.36
Indigo (survey)
#380282
ΔE00 3.45
Midnight Blue
#191970
ΔE00 4.49
Darkblue
#00008B
ΔE00 4.79
Navy
#000080
ΔE00 5.17
Cobalt Blue
#030AA7
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1886 #6F8618
analogous
#183886 #2F1886 #661886
triadic
#2F1886 #862F18 #18862F
tetradic
#2F1886 #861838 #6F8618 #188666
square
#2F1886 #861838 #6F8618 #188666
split-complementary
#2F1886 #866618 #388618
monochromatic
#0B051E #1D0F52 #2F1886 #4121BA #5E3CDC
Accessibility & contrast
On white
13.16
#2F1886 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1886 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1886
13.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1886 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1886 | 1.00 | 13.16 | 1.60 | 13.16 |
| #FFFFFF | 13.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1886; /* rgb */ color: rgb(47, 24, 134); /* oklch */ color: oklch(32.9% 0.167 281.6);
Tailwind
colors: {
custom: {
50: '#7459aa',
500: '#2f1886',
950: '#000000',
},
}SCSS
$custom: #2f1886; $custom-light: #7459aa; $custom-dark: #000000;
JSON
{
"hex": "#2f1886",
"rgb": {
"r": 47,
"g": 24,
"b": 134
},
"hsl": {
"h": 252.545,
"s": 69.62,
"l": 30.98
},
"oklch": {
"l": 0.32883,
"c": 0.16732,
"h": 281.6
},
"luminance": 0.02979
}Semantic roles & 50–950 ramp
primary
#2F1886
secondary
#A0BA40
accent
#EC3BC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F