#2F1979#2F1979
#2F1979 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.150 H 284.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1979 |
|---|---|
| RGB | rgb(47, 25, 121) |
| HSL | hsl(254, 66%, 29%) |
| HSV | hsv(254, 79%, 47%) |
| CMYK | cmyk(61.2%, 79.3%, 0%, 52.5%) |
| CIE-LAB | lab(18.71, 37.35, -50.60) |
| CIE-LCH | lch(18.71, 62.89, 306.43°) |
| OKLab | oklab(31.59% 0.0371 -0.1458) |
| OKLCH | oklch(31.59% 0.15 284.3) |
| XYZ | xyz(4.9701, 2.6798, 18.3408) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.27
Indigo (survey)
#380282
ΔE00 3.99
Royal
#0C1793
ΔE00 4.94
Dark Royal Blue
#02066F
ΔE00 5.33
Deep Blue
#040273
ΔE00 5.51
Navy
#000080
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1979 #637919
analogous
#193379 #2F1979 #5F1979
triadic
#2F1979 #792F19 #19792F
tetradic
#2F1979 #791933 #637919 #19795F
square
#2F1979 #791933 #637919 #19795F
split-complementary
#2F1979 #795F19 #337919
monochromatic
#0A0519 #1B0F46 #2F1979 #4323AC #5B37D6
Accessibility & contrast
On white
13.67
#2F1979 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2F1979 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1979
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1979 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1979 | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#033548
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f1979; /* rgb */ color: rgb(47, 25, 121); /* oklch */ color: oklch(31.6% 0.150 284.3);
Tailwind
colors: {
custom: {
50: '#7259a1',
500: '#2f1979',
950: '#000000',
},
}SCSS
$custom: #2f1979; $custom-light: #7259a1; $custom-dark: #000000;
JSON
{
"hex": "#2f1979",
"rgb": {
"r": 47,
"g": 25,
"b": 121
},
"hsl": {
"h": 253.75,
"s": 65.753,
"l": 28.627
},
"oklch": {
"l": 0.31592,
"c": 0.15046,
"h": 284.3
},
"luminance": 0.0268
}Semantic roles & 50–950 ramp
primary
#2F1979
secondary
#95AE40
accent
#E93FC2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F