#2F1885#2F1885
#2F1885 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.166 H 281.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1885 |
|---|---|
| RGB | rgb(47, 24, 133) |
| HSL | hsl(253, 69%, 31%) |
| HSV | hsv(253, 82%, 52%) |
| CMYK | cmyk(64.7%, 82%, 0%, 47.8%) |
| CIE-LAB | lab(19.84, 41.56, -56.36) |
| CIE-LCH | lch(19.84, 70.03, 306.41°) |
| OKLab | oklab(32.77% 0.034 -0.1626) |
| OKLCH | oklch(32.77% 0.166 281.8) |
| XYZ | xyz(5.7312, 2.9506, 22.4533) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.43
Royal
#0C1793
ΔE00 3.46
Midnight Blue
#191970
ΔE00 4.38
Darkblue
#00008B
ΔE00 4.83
Navy
#000080
ΔE00 5.16
Cobalt Blue
#030AA7
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1885 #6E8518
analogous
#183785 #2F1885 #651885
triadic
#2F1885 #852F18 #18852F
tetradic
#2F1885 #851837 #6E8518 #188565
square
#2F1885 #851837 #6E8518 #188565
split-complementary
#2F1885 #856518 #378518
monochromatic
#0A051D #1D0F51 #2F1885 #4121B9 #5D3CDC
Accessibility & contrast
On white
13.21
#2F1885 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1885 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1885
13.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1885 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1885 | 1.00 | 13.21 | 1.59 | 13.21 |
| #FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.21 | 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: #2f1885; /* rgb */ color: rgb(47, 24, 133); /* oklch */ color: oklch(32.8% 0.166 281.8);
Tailwind
colors: {
custom: {
50: '#7459aa',
500: '#2f1885',
950: '#000000',
},
}SCSS
$custom: #2f1885; $custom-light: #7459aa; $custom-dark: #000000;
JSON
{
"hex": "#2f1885",
"rgb": {
"r": 47,
"g": 24,
"b": 133
},
"hsl": {
"h": 252.661,
"s": 69.427,
"l": 30.784
},
"oklch": {
"l": 0.32772,
"c": 0.16612,
"h": 281.8
},
"luminance": 0.02951
}Semantic roles & 50–950 ramp
primary
#2F1885
secondary
#9FB940
accent
#EC3CC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F