#2F1578#2F1578
#2F1578 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.153 H 285.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1578 |
|---|---|
| RGB | rgb(47, 21, 120) |
| HSL | hsl(256, 70%, 28%) |
| HSV | hsv(256, 83%, 47%) |
| CMYK | cmyk(60.8%, 82.5%, 0%, 52.9%) |
| CIE-LAB | lab(17.90, 39.06, -51.30) |
| CIE-LCH | lch(17.90, 64.48, 307.29°) |
| OKLab | oklab(31% 0.0402 -0.1478) |
| OKLCH | oklch(31% 0.153 285.2) |
| XYZ | xyz(4.8296, 2.4964, 17.9930) |
| Luminance | 0.0250 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.32
Midnight Blue
#191970
ΔE00 3.56
Dark Royal Blue
#02066F
ΔE00 4.88
Deep Blue
#040273
ΔE00 4.96
Royal
#0C1793
ΔE00 5.07
Navy
#000080
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1578 #5E7815
analogous
#152C78 #2F1578 #611578
triadic
#2F1578 #782F15 #15782F
tetradic
#2F1578 #78152C #5E7815 #157861
square
#2F1578 #78152C #5E7815 #157861
split-complementary
#2F1578 #786115 #2C7815
monochromatic
#0A051A #1B0C44 #2F1578 #431EAC #5B2DDA
Accessibility & contrast
On white
14.01
#2F1578 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2F1578 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1578
14.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1578 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1578 | 1.00 | 14.01 | 1.50 | 14.01 |
| #FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#053247
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f1578; /* rgb */ color: rgb(47, 21, 120); /* oklch */ color: oklch(31.0% 0.153 285.2);
Tailwind
colors: {
custom: {
50: '#7257a0',
500: '#2f1578',
950: '#000000',
},
}SCSS
$custom: #2f1578; $custom-light: #7257a0; $custom-dark: #000000;
JSON
{
"hex": "#2f1578",
"rgb": {
"r": 47,
"g": 21,
"b": 120
},
"hsl": {
"h": 255.758,
"s": 70.213,
"l": 27.647
},
"oklch": {
"l": 0.30995,
"c": 0.15317,
"h": 285.2
},
"luminance": 0.02497
}Semantic roles & 50–950 ramp
primary
#2F1578
secondary
#90AE3B
accent
#ED3BBE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F