#2F1F79#2F1F79
#2F1F79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.144 H 283.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F79 |
|---|---|
| RGB | rgb(47, 31, 121) |
| HSL | hsl(251, 59%, 30%) |
| HSV | hsv(251, 74%, 47%) |
| CMYK | cmyk(61.2%, 74.4%, 0%, 52.5%) |
| CIE-LAB | lab(19.90, 33.99, -48.65) |
| CIE-LCH | lch(19.90, 59.35, 304.94°) |
| OKLab | oklab(32.43% 0.0324 -0.1401) |
| OKLCH | oklch(32.43% 0.144 283) |
| XYZ | xyz(5.1124, 2.9645, 18.3883) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.17
Royal
#0C1793
ΔE00 5.26
Indigo (survey)
#380282
ΔE00 5.36
Dark Royal Blue
#02066F
ΔE00 6.28
Deep Blue
#040273
ΔE00 6.60
Navy
#000080
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F79 #69791F
analogous
#1F3C79 #2F1F79 #5C1F79
triadic
#2F1F79 #792F1F #1F792F
tetradic
#2F1F79 #791F3C #69791F #1F795C
square
#2F1F79 #791F3C #69791F #1F795C
split-complementary
#2F1F79 #795C1F #3C791F
monochromatic
#090618 #1C1348 #2F1F79 #422BAA #5C43CF
Accessibility & contrast
On white
13.18
#2F1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1F79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F79
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F79 | 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)
#00337C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#01374A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1f79; /* rgb */ color: rgb(47, 31, 121); /* oklch */ color: oklch(32.4% 0.144 283.0);
Tailwind
colors: {
custom: {
50: '#715ca1',
500: '#2f1f79',
950: '#000000',
},
}SCSS
$custom: #2f1f79; $custom-light: #715ca1; $custom-dark: #000000;
JSON
{
"hex": "#2f1f79",
"rgb": {
"r": 47,
"g": 31,
"b": 121
},
"hsl": {
"h": 250.667,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.32431,
"c": 0.14384,
"h": 283
},
"luminance": 0.02965
}Semantic roles & 50–950 ramp
primary
#2F1F79
secondary
#9AAC47
accent
#E245C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F