#2F1689#2F1689
#2F1689 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.173 H 281.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1689 |
|---|---|
| RGB | rgb(47, 22, 137) |
| HSL | hsl(253, 72%, 31%) |
| HSV | hsv(253, 84%, 54%) |
| CMYK | cmyk(65.7%, 83.9%, 0%, 46.3%) |
| CIE-LAB | lab(19.98, 43.71, -58.65) |
| CIE-LCH | lch(19.98, 73.15, 306.69°) |
| OKLab | oklab(33% 0.0338 -0.1693) |
| OKLCH | oklch(33% 0.173 281.3) |
| XYZ | xyz(5.9731, 2.9838, 23.9232) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.14
Indigo (survey)
#380282
ΔE00 3.21
Darkblue
#00008B
ΔE00 4.45
Cobalt Blue
#030AA7
ΔE00 4.79
Midnight Blue
#191970
ΔE00 4.94
Navy
#000080
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1689 #708916
analogous
#163789 #2F1689 #681689
triadic
#2F1689 #892F16 #16892F
tetradic
#2F1689 #891637 #708916 #168968
square
#2F1689 #891637 #708916 #168968
split-complementary
#2F1689 #896816 #378916
monochromatic
#0B0520 #1D0E54 #2F1689 #411EBE #5E3ADF
Accessibility & contrast
On white
13.15
#2F1689 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1689 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1689
13.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1689 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1689 | 1.00 | 13.15 | 1.60 | 13.15 |
| #FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1689; /* rgb */ color: rgb(47, 22, 137); /* oklch */ color: oklch(33.0% 0.173 281.3);
Tailwind
colors: {
custom: {
50: '#7558ad',
500: '#2f1689',
950: '#000000',
},
}SCSS
$custom: #2f1689; $custom-light: #7558ad; $custom-dark: #000000;
JSON
{
"hex": "#2f1689",
"rgb": {
"r": 47,
"g": 22,
"b": 137
},
"hsl": {
"h": 253.043,
"s": 72.327,
"l": 31.176
},
"oklch": {
"l": 0.32999,
"c": 0.17258,
"h": 281.3
},
"luminance": 0.02984
}Semantic roles & 50–950 ramp
primary
#2F1689
secondary
#A1BD3E
accent
#EF39C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F