#2F1989#2F1989
#2F1989 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.170 H 280.9°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1989 |
|---|---|
| RGB | rgb(47, 25, 137) |
| HSL | hsl(252, 69%, 32%) |
| HSV | hsv(252, 82%, 54%) |
| CMYK | cmyk(65.7%, 81.8%, 0%, 46.3%) |
| CIE-LAB | lab(20.46, 42.30, -57.85) |
| CIE-LCH | lch(20.46, 71.67, 306.17°) |
| OKLab | oklab(33.33% 0.0322 -0.167) |
| OKLCH | oklch(33.33% 0.17 280.9) |
| XYZ | xyz(6.0339, 3.1053, 23.9435) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.11
Indigo (survey)
#380282
ΔE00 3.72
Midnight Blue
#191970
ΔE00 4.78
Darkblue
#00008B
ΔE00 4.86
Cobalt Blue
#030AA7
ΔE00 4.98
Navy
#000080
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1989 #738919
analogous
#193B89 #2F1989 #671989
triadic
#2F1989 #892F19 #19892F
tetradic
#2F1989 #89193B #738919 #198967
square
#2F1989 #89193B #738919 #198967
split-complementary
#2F1989 #896719 #3B8919
monochromatic
#0B0621 #1D1055 #2F1989 #4122BD #5F40DC
Accessibility & contrast
On white
12.95
#2F1989 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2F1989 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1989
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1989 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1989 | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 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: #2f1989; /* rgb */ color: rgb(47, 25, 137); /* oklch */ color: oklch(33.3% 0.170 280.9);
Tailwind
colors: {
custom: {
50: '#755aad',
500: '#2f1989',
950: '#000000',
},
}SCSS
$custom: #2f1989; $custom-light: #755aad; $custom-dark: #000000;
JSON
{
"hex": "#2f1989",
"rgb": {
"r": 47,
"g": 25,
"b": 137
},
"hsl": {
"h": 251.786,
"s": 69.136,
"l": 31.765
},
"oklch": {
"l": 0.33332,
"c": 0.17004,
"h": 280.9
},
"luminance": 0.03106
}Semantic roles & 50–950 ramp
primary
#2F1989
secondary
#A4BC41
accent
#EC3CC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F