#2F1785#2F1785
#2F1785 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.167 H 282.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1785 |
|---|---|
| RGB | rgb(47, 23, 133) |
| HSL | hsl(253, 71%, 31%) |
| HSV | hsv(253, 83%, 52%) |
| CMYK | cmyk(64.7%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(19.68, 42.04, -56.63) |
| CIE-LCH | lch(19.68, 70.53, 306.59°) |
| OKLab | oklab(32.66% 0.0346 -0.1634) |
| OKLCH | oklch(32.66% 0.167 282) |
| XYZ | xyz(5.7110, 2.9102, 22.4465) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.25
Royal
#0C1793
ΔE00 3.46
Midnight Blue
#191970
ΔE00 4.44
Darkblue
#00008B
ΔE00 4.69
Navy
#000080
ΔE00 5.02
Indigo
#4B0082
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1785 #6D8517
analogous
#173685 #2F1785 #661785
triadic
#2F1785 #852F17 #17852F
tetradic
#2F1785 #851736 #6D8517 #178566
square
#2F1785 #851736 #6D8517 #178566
split-complementary
#2F1785 #856617 #368517
monochromatic
#0A051D #1D0E51 #2F1785 #4120B9 #5D3ADD
Accessibility & contrast
On white
13.27
#2F1785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F1785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1785
13.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1785 | 1.00 | 13.27 | 1.58 | 13.27 |
| #FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1785; /* rgb */ color: rgb(47, 23, 133); /* oklch */ color: oklch(32.7% 0.167 282.0);
Tailwind
colors: {
custom: {
50: '#7459aa',
500: '#2f1785',
950: '#000000',
},
}SCSS
$custom: #2f1785; $custom-light: #7459aa; $custom-dark: #000000;
JSON
{
"hex": "#2f1785",
"rgb": {
"r": 47,
"g": 23,
"b": 133
},
"hsl": {
"h": 253.091,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.32658,
"c": 0.167,
"h": 282
},
"luminance": 0.02911
}Semantic roles & 50–950 ramp
primary
#2F1785
secondary
#9EB93F
accent
#ED3BC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F