#2F1679#2F1679
#2F1679 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.153 H 284.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1679 |
|---|---|
| RGB | rgb(47, 22, 121) |
| HSL | hsl(255, 69%, 28%) |
| HSV | hsv(255, 82%, 47%) |
| CMYK | cmyk(61.2%, 81.8%, 0%, 52.5%) |
| CIE-LAB | lab(18.18, 38.88, -51.48) |
| CIE-LCH | lch(18.18, 64.51, 307.06°) |
| OKLab | oklab(31.22% 0.0392 -0.1483) |
| OKLCH | oklch(31.22% 0.153 284.8) |
| XYZ | xyz(4.9093, 2.5583, 18.3206) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.41
Midnight Blue
#191970
ΔE00 3.51
Royal
#0C1793
ΔE00 4.92
Dark Royal Blue
#02066F
ΔE00 4.99
Deep Blue
#040273
ΔE00 5.08
Navy
#000080
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1679 #607916
analogous
#162E79 #2F1679 #611679
triadic
#2F1679 #792F16 #16792F
tetradic
#2F1679 #79162E #607916 #167961
square
#2F1679 #79162E #607916 #167961
split-complementary
#2F1679 #796116 #2E7916
monochromatic
#0A051A #1B0D45 #2F1679 #431FAD #5B30D9
Accessibility & contrast
On white
13.89
#2F1679 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2F1679 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1679
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1679 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1679 | 1.00 | 13.89 | 1.51 | 13.89 |
| #FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#033347
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f1679; /* rgb */ color: rgb(47, 22, 121); /* oklch */ color: oklch(31.2% 0.153 284.8);
Tailwind
colors: {
custom: {
50: '#7257a1',
500: '#2f1679',
950: '#000000',
},
}SCSS
$custom: #2f1679; $custom-light: #7257a1; $custom-dark: #000000;
JSON
{
"hex": "#2f1679",
"rgb": {
"r": 47,
"g": 22,
"b": 121
},
"hsl": {
"h": 255.152,
"s": 69.231,
"l": 28.039
},
"oklch": {
"l": 0.3122,
"c": 0.15343,
"h": 284.8
},
"luminance": 0.02559
}Semantic roles & 50–950 ramp
primary
#2F1679
secondary
#92AE3D
accent
#EC3CC0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F