#2F1766#2F1766
#2F1766 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.129 H 290.0°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1766 |
|---|---|
| RGB | rgb(47, 23, 102) |
| HSL | hsl(258, 63%, 25%) |
| HSV | hsv(258, 77%, 40%) |
| CMYK | cmyk(53.9%, 77.5%, 0%, 60%) |
| CIE-LAB | lab(16.39, 32.51, -42.09) |
| CIE-LCH | lch(16.39, 53.19, 307.68°) |
| OKLab | oklab(29.37% 0.044 -0.1209) |
| OKLCH | oklch(29.37% 0.129 290) |
| XYZ | xyz(3.8763, 2.1763, 12.7836) |
| Luminance | 0.0218 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.08
Dark Indigo
#1F0954
ΔE00 4.16
Darkblue (survey)
#030764
ΔE00 5.67
Indigo (survey)
#380282
ΔE00 5.92
Dark Royal Blue
#02066F
ΔE00 5.99
Deep Blue
#040273
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1766 #4E6617
analogous
#172766 #2F1766 #571766
triadic
#2F1766 #662F17 #17662F
tetradic
#2F1766 #661727 #4E6617 #176657
square
#2F1766 #661727 #4E6617 #176657
split-complementary
#2F1766 #665717 #276617
monochromatic
#0C0619 #180C34 #2F1766 #462298 #5D2ECA
Accessibility & contrast
On white
14.63
#2F1766 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2F1766 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1766
14.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1766 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1766 | 1.00 | 14.63 | 1.44 | 14.63 |
| #FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#1B2C3D
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2f1766; /* rgb */ color: rgb(47, 23, 102); /* oklch */ color: oklch(29.4% 0.129 290.0);
Tailwind
colors: {
custom: {
50: '#6e5792',
500: '#2f1766',
950: '#000000',
},
}SCSS
$custom: #2f1766; $custom-light: #6e5792; $custom-dark: #000000;
JSON
{
"hex": "#2f1766",
"rgb": {
"r": 47,
"g": 23,
"b": 102
},
"hsl": {
"h": 258.228,
"s": 63.2,
"l": 24.51
},
"oklch": {
"l": 0.29365,
"c": 0.12866,
"h": 290
},
"luminance": 0.02176
}Semantic roles & 50–950 ramp
primary
#2F1766
secondary
#7F9C3C
accent
#E642B4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E