#2F1167#2F1167
#2F1167 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.137 H 291.0°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1167 |
|---|---|
| RGB | rgb(47, 17, 103) |
| HSL | hsl(261, 72%, 24%) |
| HSV | hsv(261, 83%, 40%) |
| CMYK | cmyk(54.4%, 83.5%, 0%, 59.6%) |
| CIE-LAB | lab(15.40, 35.91, -44.36) |
| CIE-LCH | lch(15.40, 57.07, 308.99°) |
| OKLab | oklab(28.71% 0.0489 -0.1275) |
| OKLCH | oklch(28.71% 0.137 291) |
| XYZ | xyz(3.8202, 1.9843, 13.0111) |
| Luminance | 0.0198 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.83
Midnight Blue
#191970
ΔE00 4.44
Indigo (survey)
#380282
ΔE00 4.97
Darkblue (survey)
#030764
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 5.27
Deep Blue
#040273
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1167 #496711
analogous
#111E67 #2F1167 #5A1167
triadic
#2F1167 #672F11 #11672F
tetradic
#2F1167 #67111E #496711 #11675A
square
#2F1167 #67111E #496711 #11675A
split-complementary
#2F1167 #675A11 #1E6711
monochromatic
#0C041A #170832 #2F1167 #471A9C #5F22D0
Accessibility & contrast
On white
15.03
#2F1167 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2F1167 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1167
15.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1167 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1167 | 1.00 | 15.03 | 1.40 | 15.03 |
| #FFFFFF | 15.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#1B2A3C
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2f1167; /* rgb */ color: rgb(47, 17, 103); /* oklch */ color: oklch(28.7% 0.137 291.0);
Tailwind
colors: {
custom: {
50: '#6f5393',
500: '#2f1167',
950: '#000000',
},
}SCSS
$custom: #2f1167; $custom-light: #6f5393; $custom-dark: #000000;
JSON
{
"hex": "#2f1167",
"rgb": {
"r": 47,
"g": 17,
"b": 103
},
"hsl": {
"h": 260.93,
"s": 71.667,
"l": 23.529
},
"oklch": {
"l": 0.28708,
"c": 0.13653,
"h": 291
},
"luminance": 0.01985
}Semantic roles & 50–950 ramp
primary
#2F1167
secondary
#7A9F35
accent
#EE39AF
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E