#2F1981#2F1981
#2F1981 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.160 H 282.5°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1981 |
|---|---|
| RGB | rgb(47, 25, 129) |
| HSL | hsl(253, 68%, 30%) |
| HSV | hsv(253, 81%, 51%) |
| CMYK | cmyk(63.6%, 80.6%, 0%, 49.4%) |
| CIE-LAB | lab(19.57, 39.84, -54.28) |
| CIE-LCH | lch(19.57, 67.33, 306.28°) |
| OKLab | oklab(32.45% 0.0347 -0.1565) |
| OKLCH | oklch(32.45% 0.16 282.5) |
| XYZ | xyz(5.4811, 2.8842, 21.0325) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.63
Royal
#0C1793
ΔE00 3.89
Midnight Blue
#191970
ΔE00 3.90
Darkblue
#00008B
ΔE00 5.17
Navy
#000080
ΔE00 5.32
Indigo
#4B0082
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1981 #6B8119
analogous
#193781 #2F1981 #631981
triadic
#2F1981 #812F19 #19812F
tetradic
#2F1981 #811937 #6B8119 #198163
square
#2F1981 #811937 #6B8119 #198163
split-complementary
#2F1981 #816319 #378119
monochromatic
#0A051A #1C0F4E #2F1981 #4223B4 #5D3BD9
Accessibility & contrast
On white
13.32
#2F1981 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F1981 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1981
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1981 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1981 | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f1981; /* rgb */ color: rgb(47, 25, 129); /* oklch */ color: oklch(32.5% 0.160 282.5);
Tailwind
colors: {
custom: {
50: '#7359a7',
500: '#2f1981',
950: '#000000',
},
}SCSS
$custom: #2f1981; $custom-light: #7359a7; $custom-dark: #000000;
JSON
{
"hex": "#2f1981",
"rgb": {
"r": 47,
"g": 25,
"b": 129
},
"hsl": {
"h": 252.692,
"s": 67.532,
"l": 30.196
},
"oklch": {
"l": 0.32452,
"c": 0.16034,
"h": 282.5
},
"luminance": 0.02885
}Semantic roles & 50–950 ramp
primary
#2F1981
secondary
#9CB541
accent
#EA3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F