#2F1881#2F1881
#2F1881 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.161 H 282.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1881 |
|---|---|
| RGB | rgb(47, 24, 129) |
| HSL | hsl(253, 69%, 30%) |
| HSV | hsv(253, 81%, 51%) |
| CMYK | cmyk(63.6%, 81.4%, 0%, 49.4%) |
| CIE-LAB | lab(19.40, 40.34, -54.56) |
| CIE-LCH | lch(19.40, 67.86, 306.47°) |
| OKLab | oklab(32.33% 0.0353 -0.1574) |
| OKLCH | oklch(32.33% 0.161 282.6) |
| XYZ | xyz(5.4601, 2.8422, 21.0255) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.43
Royal
#0C1793
ΔE00 3.88
Midnight Blue
#191970
ΔE00 3.96
Darkblue
#00008B
ΔE00 5.02
Navy
#000080
ΔE00 5.17
Indigo
#4B0082
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1881 #6A8118
analogous
#183581 #2F1881 #641881
triadic
#2F1881 #812F18 #18812F
tetradic
#2F1881 #811835 #6A8118 #188164
square
#2F1881 #811835 #6A8118 #188164
split-complementary
#2F1881 #816418 #358118
monochromatic
#09051A #1C0E4D #2F1881 #4222B5 #5C39DA
Accessibility & contrast
On white
13.39
#2F1881 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2F1881 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1881
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1881 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1881 | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f1881; /* rgb */ color: rgb(47, 24, 129); /* oklch */ color: oklch(32.3% 0.161 282.6);
Tailwind
colors: {
custom: {
50: '#7359a7',
500: '#2f1881',
950: '#000000',
},
}SCSS
$custom: #2f1881; $custom-light: #7359a7; $custom-dark: #000000;
JSON
{
"hex": "#2f1881",
"rgb": {
"r": 47,
"g": 24,
"b": 129
},
"hsl": {
"h": 253.143,
"s": 68.627,
"l": 30
},
"oklch": {
"l": 0.32331,
"c": 0.16128,
"h": 282.6
},
"luminance": 0.02843
}Semantic roles & 50–950 ramp
primary
#2F1881
secondary
#9BB540
accent
#EB3CC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F