#2F1767#2F1767
#2F1767 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.130 H 289.7°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1767 |
|---|---|
| RGB | rgb(47, 23, 103) |
| HSL | hsl(258, 63%, 25%) |
| HSV | hsv(258, 78%, 40%) |
| CMYK | cmyk(54.4%, 77.7%, 0%, 59.6%) |
| CIE-LAB | lab(16.48, 32.82, -42.59) |
| CIE-LCH | lch(16.48, 53.77, 307.62°) |
| OKLab | oklab(29.47% 0.0437 -0.1223) |
| OKLCH | oklch(29.47% 0.13 289.7) |
| XYZ | xyz(3.9262, 2.1962, 13.0464) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.96
Dark Indigo
#1F0954
ΔE00 4.26
Darkblue (survey)
#030764
ΔE00 5.61
Indigo (survey)
#380282
ΔE00 5.76
Dark Royal Blue
#02066F
ΔE00 5.88
Deep Blue
#040273
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1767 #4F6717
analogous
#172767 #2F1767 #571767
triadic
#2F1767 #672F17 #17672F
tetradic
#2F1767 #671727 #4F6717 #176757
square
#2F1767 #671727 #4F6717 #176757
split-complementary
#2F1767 #675717 #276717
monochromatic
#0B0619 #180C35 #2F1767 #462299 #5D2DCB
Accessibility & contrast
On white
14.59
#2F1767 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2F1767 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1767
14.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1767 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1767 | 1.00 | 14.59 | 1.44 | 14.59 |
| #FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#1B2D3D
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2f1767; /* rgb */ color: rgb(47, 23, 103); /* oklch */ color: oklch(29.5% 0.130 289.7);
Tailwind
colors: {
custom: {
50: '#6e5793',
500: '#2f1767',
950: '#000000',
},
}SCSS
$custom: #2f1767; $custom-light: #6e5793; $custom-dark: #000000;
JSON
{
"hex": "#2f1767",
"rgb": {
"r": 47,
"g": 23,
"b": 103
},
"hsl": {
"h": 258,
"s": 63.492,
"l": 24.706
},
"oklch": {
"l": 0.29465,
"c": 0.12993,
"h": 289.7
},
"luminance": 0.02196
}Semantic roles & 50–950 ramp
primary
#2F1767
secondary
#809D3D
accent
#E741B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E