#2F1779#2F1779
#2F1779 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.152 H 284.6°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1779 |
|---|---|
| RGB | rgb(47, 23, 121) |
| HSL | hsl(255, 68%, 28%) |
| HSV | hsv(255, 81%, 47%) |
| CMYK | cmyk(61.2%, 81%, 0%, 52.5%) |
| CIE-LAB | lab(18.35, 38.38, -51.20) |
| CIE-LCH | lch(18.35, 63.99, 306.86°) |
| OKLab | oklab(31.34% 0.0385 -0.1475) |
| OKLCH | oklch(31.34% 0.152 284.6) |
| XYZ | xyz(4.9288, 2.5973, 18.3271) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.42
Indigo (survey)
#380282
ΔE00 3.60
Royal
#0C1793
ΔE00 4.92
Dark Royal Blue
#02066F
ΔE00 5.09
Deep Blue
#040273
ΔE00 5.21
Navy
#000080
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1779 #617917
analogous
#173079 #2F1779 #601779
triadic
#2F1779 #792F17 #17792F
tetradic
#2F1779 #791730 #617917 #177960
square
#2F1779 #791730 #617917 #177960
split-complementary
#2F1779 #796017 #307917
monochromatic
#0A051A #1B0D46 #2F1779 #4321AC #5B32D8
Accessibility & contrast
On white
13.82
#2F1779 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2F1779 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1779
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1779 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1779 | 1.00 | 13.82 | 1.52 | 13.82 |
| #FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#033448
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2f1779; /* rgb */ color: rgb(47, 23, 121); /* oklch */ color: oklch(31.3% 0.152 284.6);
Tailwind
colors: {
custom: {
50: '#7258a1',
500: '#2f1779',
950: '#000000',
},
}SCSS
$custom: #2f1779; $custom-light: #7258a1; $custom-dark: #000000;
JSON
{
"hex": "#2f1779",
"rgb": {
"r": 47,
"g": 23,
"b": 121
},
"hsl": {
"h": 254.694,
"s": 68.056,
"l": 28.235
},
"oklch": {
"l": 0.31341,
"c": 0.15246,
"h": 284.6
},
"luminance": 0.02598
}Semantic roles & 50–950 ramp
primary
#2F1779
secondary
#93AE3E
accent
#EB3DC0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F