#2F1884#2F1884
#2F1884 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.165 H 282.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1884 |
|---|---|
| RGB | rgb(47, 24, 132) |
| HSL | hsl(253, 69%, 31%) |
| HSV | hsv(253, 82%, 52%) |
| CMYK | cmyk(64.4%, 81.8%, 0%, 48.2%) |
| CIE-LAB | lab(19.73, 41.26, -55.91) |
| CIE-LCH | lch(19.73, 69.49, 306.42°) |
| OKLab | oklab(32.66% 0.0343 -0.1613) |
| OKLCH | oklch(32.66% 0.165 282) |
| XYZ | xyz(5.6625, 2.9231, 22.0912) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.42
Royal
#0C1793
ΔE00 3.56
Midnight Blue
#191970
ΔE00 4.27
Darkblue
#00008B
ΔE00 4.87
Navy
#000080
ΔE00 5.15
Indigo
#4B0082
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1884 #6D8418
analogous
#183784 #2F1884 #651884
triadic
#2F1884 #842F18 #18842F
tetradic
#2F1884 #841837 #6D8418 #188465
square
#2F1884 #841837 #6D8418 #188465
split-complementary
#2F1884 #846518 #378418
monochromatic
#0A051C #1D0F50 #2F1884 #4121B8 #5D3BDB
Accessibility & contrast
On white
13.25
#2F1884 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F1884 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1884
13.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1884 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1884 | 1.00 | 13.25 | 1.58 | 13.25 |
| #FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1884; /* rgb */ color: rgb(47, 24, 132); /* oklch */ color: oklch(32.7% 0.165 282.0);
Tailwind
colors: {
custom: {
50: '#7459a9',
500: '#2f1884',
950: '#000000',
},
}SCSS
$custom: #2f1884; $custom-light: #7459a9; $custom-dark: #000000;
JSON
{
"hex": "#2f1884",
"rgb": {
"r": 47,
"g": 24,
"b": 132
},
"hsl": {
"h": 252.778,
"s": 69.231,
"l": 30.588
},
"oklch": {
"l": 0.32661,
"c": 0.16491,
"h": 282
},
"luminance": 0.02924
}Semantic roles & 50–950 ramp
primary
#2F1884
secondary
#9EB840
accent
#EC3CC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F