#2F1760#2F1760
#2F1760 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.121 H 292.1°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1760 |
|---|---|
| RGB | rgb(47, 23, 96) |
| HSL | hsl(260, 61%, 23%) |
| HSV | hsv(260, 76%, 38%) |
| CMYK | cmyk(51%, 76%, 0%, 62.4%) |
| CIE-LAB | lab(15.81, 30.65, -39.07) |
| CIE-LCH | lch(15.81, 49.66, 308.11°) |
| OKLab | oklab(28.78% 0.0455 -0.112) |
| OKLCH | oklch(28.78% 0.121 292.1) |
| XYZ | xyz(3.5894, 2.0615, 11.2729) |
| Luminance | 0.0206 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.78
Midnight Blue
#191970
ΔE00 4.92
Darkblue (survey)
#030764
ΔE00 6.17
Dark Blue
#00035B
ΔE00 6.67
Royal Purple (survey)
#4B006E
ΔE00 6.71
Dark Royal Blue
#02066F
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1760 #486017
analogous
#172360 #2F1760 #531760
triadic
#2F1760 #602F17 #17602F
tetradic
#2F1760 #601723 #486017 #176053
square
#2F1760 #601723 #486017 #176053
split-complementary
#2F1760 #605317 #236017
monochromatic
#0C0619 #170B2F #2F1760 #472391 #5F2FC3
Accessibility & contrast
On white
14.87
#2F1760 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2F1760 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1760
14.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1760 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1760 | 1.00 | 14.87 | 1.41 | 14.87 |
| #FFFFFF | 14.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#202A39
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2f1760; /* rgb */ color: rgb(47, 23, 96); /* oklch */ color: oklch(28.8% 0.121 292.1);
Tailwind
colors: {
custom: {
50: '#6d568e',
500: '#2f1760',
950: '#000000',
},
}SCSS
$custom: #2f1760; $custom-light: #6d568e; $custom-dark: #000000;
JSON
{
"hex": "#2f1760",
"rgb": {
"r": 47,
"g": 23,
"b": 96
},
"hsl": {
"h": 259.726,
"s": 61.345,
"l": 23.333
},
"oklch": {
"l": 0.28776,
"c": 0.1209,
"h": 292.1
},
"luminance": 0.02062
}Semantic roles & 50–950 ramp
primary
#2F1760
secondary
#79973C
accent
#E443AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D