#2F1788#2F1788
#2F1788 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.171 H 281.4°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1788 |
|---|---|
| RGB | rgb(47, 23, 136) |
| HSL | hsl(253, 71%, 31%) |
| HSV | hsv(253, 83%, 53%) |
| CMYK | cmyk(65.4%, 83.1%, 0%, 46.7%) |
| CIE-LAB | lab(20.02, 42.95, -57.95) |
| CIE-LCH | lch(20.02, 72.13, 306.54°) |
| OKLab | oklab(32.99% 0.0336 -0.1672) |
| OKLCH | oklch(32.99% 0.171 281.4) |
| XYZ | xyz(5.9212, 2.9943, 23.5537) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.20
Indigo (survey)
#380282
ΔE00 3.33
Darkblue
#00008B
ΔE00 4.60
Midnight Blue
#191970
ΔE00 4.77
Cobalt Blue
#030AA7
ΔE00 4.97
Navy
#000080
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1788 #708817
analogous
#173788 #2F1788 #671788
triadic
#2F1788 #882F17 #17882F
tetradic
#2F1788 #881737 #708817 #178867
square
#2F1788 #881737 #708817 #178867
split-complementary
#2F1788 #886717 #378817
monochromatic
#0B051F #1D0E54 #2F1788 #4120BC #5E3BDE
Accessibility & contrast
On white
13.13
#2F1788 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1788 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1788
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1788 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1788 | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1788; /* rgb */ color: rgb(47, 23, 136); /* oklch */ color: oklch(33.0% 0.171 281.4);
Tailwind
colors: {
custom: {
50: '#7559ac',
500: '#2f1788',
950: '#000000',
},
}SCSS
$custom: #2f1788; $custom-light: #7559ac; $custom-dark: #000000;
JSON
{
"hex": "#2f1788",
"rgb": {
"r": 47,
"g": 23,
"b": 136
},
"hsl": {
"h": 252.743,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.32994,
"c": 0.17057,
"h": 281.4
},
"luminance": 0.02995
}Semantic roles & 50–950 ramp
primary
#2F1788
secondary
#A1BC3F
accent
#EE3AC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F