#2F1889#2F1889
#2F1889 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.171 H 281.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1889 |
|---|---|
| RGB | rgb(47, 24, 137) |
| HSL | hsl(252, 70%, 32%) |
| HSV | hsv(252, 82%, 54%) |
| CMYK | cmyk(65.7%, 82.5%, 0%, 46.3%) |
| CIE-LAB | lab(20.30, 42.78, -58.13) |
| CIE-LCH | lch(20.30, 72.17, 306.35°) |
| OKLab | oklab(33.22% 0.0327 -0.1677) |
| OKLCH | oklch(33.22% 0.171 281) |
| XYZ | xyz(6.0129, 3.0633, 23.9365) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.11
Indigo (survey)
#380282
ΔE00 3.54
Darkblue
#00008B
ΔE00 4.72
Midnight Blue
#191970
ΔE00 4.83
Cobalt Blue
#030AA7
ΔE00 4.91
Navy
#000080
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1889 #728918
analogous
#183A89 #2F1889 #681889
triadic
#2F1889 #892F18 #18892F
tetradic
#2F1889 #89183A #728918 #188968
square
#2F1889 #89183A #728918 #188968
split-complementary
#2F1889 #896818 #3A8918
monochromatic
#0B0621 #1D0F55 #2F1889 #4121BD #5F3EDD
Accessibility & contrast
On white
13.02
#2F1889 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2F1889 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1889
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1889 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1889 | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1889; /* rgb */ color: rgb(47, 24, 137); /* oklch */ color: oklch(33.2% 0.171 281.0);
Tailwind
colors: {
custom: {
50: '#7559ad',
500: '#2f1889',
950: '#000000',
},
}SCSS
$custom: #2f1889; $custom-light: #7559ad; $custom-dark: #000000;
JSON
{
"hex": "#2f1889",
"rgb": {
"r": 47,
"g": 24,
"b": 137
},
"hsl": {
"h": 252.212,
"s": 70.186,
"l": 31.569
},
"oklch": {
"l": 0.33217,
"c": 0.17091,
"h": 281
},
"luminance": 0.03064
}Semantic roles & 50–950 ramp
primary
#2F1889
secondary
#A3BD40
accent
#ED3BC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F