#2F1984#2F1984
#2F1984 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.164 H 281.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1984 |
|---|---|
| RGB | rgb(47, 25, 132) |
| HSL | hsl(252, 68%, 31%) |
| HSV | hsv(252, 81%, 52%) |
| CMYK | cmyk(64.4%, 81.1%, 0%, 48.2%) |
| CIE-LAB | lab(19.90, 40.77, -55.63) |
| CIE-LCH | lch(19.90, 68.97, 306.23°) |
| OKLab | oklab(32.78% 0.0337 -0.1605) |
| OKLCH | oklch(32.78% 0.164 281.9) |
| XYZ | xyz(5.6835, 2.9651, 22.0981) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.56
Indigo (survey)
#380282
ΔE00 3.61
Midnight Blue
#191970
ΔE00 4.21
Darkblue
#00008B
ΔE00 5.02
Navy
#000080
ΔE00 5.30
Indigo
#4B0082
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1984 #6E8419
analogous
#193984 #2F1984 #641984
triadic
#2F1984 #842F19 #19842F
tetradic
#2F1984 #841939 #6E8419 #198464
square
#2F1984 #841939 #6E8419 #198464
split-complementary
#2F1984 #846419 #398419
monochromatic
#0A061D #1D0F51 #2F1984 #4123B7 #5D3DDA
Accessibility & contrast
On white
13.18
#2F1984 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1984 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1984
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1984 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1984 | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1984; /* rgb */ color: rgb(47, 25, 132); /* oklch */ color: oklch(32.8% 0.164 281.9);
Tailwind
colors: {
custom: {
50: '#7459a9',
500: '#2f1984',
950: '#000000',
},
}SCSS
$custom: #2f1984; $custom-light: #7459a9; $custom-dark: #000000;
JSON
{
"hex": "#2f1984",
"rgb": {
"r": 47,
"g": 25,
"b": 132
},
"hsl": {
"h": 252.336,
"s": 68.153,
"l": 30.784
},
"oklch": {
"l": 0.3278,
"c": 0.164,
"h": 281.9
},
"luminance": 0.02966
}Semantic roles & 50–950 ramp
primary
#2F1984
secondary
#9FB841
accent
#EB3DC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F