#2F1684#2F1684
#2F1684 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.167 H 282.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1684 |
|---|---|
| RGB | rgb(47, 22, 132) |
| HSL | hsl(254, 71%, 30%) |
| HSV | hsv(254, 83%, 52%) |
| CMYK | cmyk(64.4%, 83.3%, 0%, 48.2%) |
| CIE-LAB | lab(19.41, 42.21, -56.45) |
| CIE-LCH | lch(19.41, 70.49, 306.79°) |
| OKLab | oklab(32.44% 0.0355 -0.1628) |
| OKLCH | oklch(32.44% 0.167 282.3) |
| XYZ | xyz(5.6228, 2.8437, 22.0779) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.06
Royal
#0C1793
ΔE00 3.58
Midnight Blue
#191970
ΔE00 4.40
Darkblue
#00008B
ΔE00 4.60
Navy
#000080
ΔE00 4.88
Indigo
#4B0082
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1684 #6B8416
analogous
#163484 #2F1684 #661684
triadic
#2F1684 #842F16 #16842F
tetradic
#2F1684 #841634 #6B8416 #168466
square
#2F1684 #841634 #6B8416 #168466
split-complementary
#2F1684 #846616 #348416
monochromatic
#0A051B #1C0D50 #2F1684 #421FB8 #5D37DE
Accessibility & contrast
On white
13.39
#2F1684 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2F1684 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1684
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1684 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1684 | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f1684; /* rgb */ color: rgb(47, 22, 132); /* oklch */ color: oklch(32.4% 0.167 282.3);
Tailwind
colors: {
custom: {
50: '#7458a9',
500: '#2f1684',
950: '#000000',
},
}SCSS
$custom: #2f1684; $custom-light: #7458a9; $custom-dark: #000000;
JSON
{
"hex": "#2f1684",
"rgb": {
"r": 47,
"g": 22,
"b": 132
},
"hsl": {
"h": 253.636,
"s": 71.429,
"l": 30.196
},
"oklch": {
"l": 0.32435,
"c": 0.16666,
"h": 282.3
},
"luminance": 0.02844
}Semantic roles & 50–950 ramp
primary
#2F1684
secondary
#9CB83D
accent
#EE3AC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F