#2F1789#2F1789
#2F1789 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.172 H 281.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1789 |
|---|---|
| RGB | rgb(47, 23, 137) |
| HSL | hsl(253, 71%, 31%) |
| HSV | hsv(253, 83%, 54%) |
| CMYK | cmyk(65.7%, 83.2%, 0%, 46.3%) |
| CIE-LAB | lab(20.14, 43.25, -58.39) |
| CIE-LCH | lch(20.14, 72.67, 306.53°) |
| OKLab | oklab(33.11% 0.0333 -0.1685) |
| OKLCH | oklch(33.11% 0.172 281.2) |
| XYZ | xyz(5.9926, 3.0228, 23.9297) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.12
Indigo (survey)
#380282
ΔE00 3.37
Darkblue
#00008B
ΔE00 4.58
Cobalt Blue
#030AA7
ΔE00 4.85
Midnight Blue
#191970
ΔE00 4.88
Navy
#000080
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1789 #718917
analogous
#173889 #2F1789 #681789
triadic
#2F1789 #892F17 #17892F
tetradic
#2F1789 #891738 #718917 #178968
square
#2F1789 #891738 #718917 #178968
split-complementary
#2F1789 #896817 #388917
monochromatic
#0B0520 #1D0E55 #2F1789 #4120BD #5E3CDE
Accessibility & contrast
On white
13.09
#2F1789 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1789 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1789
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1789 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1789 | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1789; /* rgb */ color: rgb(47, 23, 137); /* oklch */ color: oklch(33.1% 0.172 281.2);
Tailwind
colors: {
custom: {
50: '#7559ad',
500: '#2f1789',
950: '#000000',
},
}SCSS
$custom: #2f1789; $custom-light: #7559ad; $custom-dark: #000000;
JSON
{
"hex": "#2f1789",
"rgb": {
"r": 47,
"g": 23,
"b": 137
},
"hsl": {
"h": 252.632,
"s": 71.25,
"l": 31.373
},
"oklch": {
"l": 0.33106,
"c": 0.17176,
"h": 281.2
},
"luminance": 0.03023
}Semantic roles & 50–950 ramp
primary
#2F1789
secondary
#A2BD3F
accent
#EE3AC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F