#2F1863#2F1863
#2F1863 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.124 H 290.7°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1863 |
|---|---|
| RGB | rgb(47, 24, 99) |
| HSL | hsl(258, 61%, 24%) |
| HSV | hsv(258, 76%, 39%) |
| CMYK | cmyk(52.5%, 75.8%, 0%, 61.2%) |
| CIE-LAB | lab(16.30, 31.01, -40.26) |
| CIE-LCH | lch(16.30, 50.82, 307.61°) |
| OKLab | oklab(29.21% 0.0438 -0.1155) |
| OKLCH | oklch(29.21% 0.124 290.7) |
| XYZ | xyz(3.7504, 2.1583, 12.0209) |
| Luminance | 0.0216 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.07
Midnight Blue
#191970
ΔE00 4.44
Darkblue (survey)
#030764
ΔE00 6.02
Dark Royal Blue
#02066F
ΔE00 6.49
Indigo (survey)
#380282
ΔE00 6.58
Dark Blue
#00035B
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1863 #4C6318
analogous
#182763 #2F1863 #551863
triadic
#2F1863 #632F18 #18632F
tetradic
#2F1863 #631827 #4C6318 #186355
square
#2F1863 #631827 #4C6318 #186355
split-complementary
#2F1863 #635518 #276318
monochromatic
#0C0619 #180C32 #2F1863 #462494 #5E30C6
Accessibility & contrast
On white
14.67
#2F1863 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2F1863 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1863
14.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1863 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1863 | 1.00 | 14.67 | 1.43 | 14.67 |
| #FFFFFF | 14.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#1E2C3B
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2f1863; /* rgb */ color: rgb(47, 24, 99); /* oklch */ color: oklch(29.2% 0.124 290.7);
Tailwind
colors: {
custom: {
50: '#6e5790',
500: '#2f1863',
950: '#000000',
},
}SCSS
$custom: #2f1863; $custom-light: #6e5790; $custom-dark: #000000;
JSON
{
"hex": "#2f1863",
"rgb": {
"r": 47,
"g": 24,
"b": 99
},
"hsl": {
"h": 258.4,
"s": 60.976,
"l": 24.118
},
"oklch": {
"l": 0.29212,
"c": 0.12354,
"h": 290.7
},
"luminance": 0.02158
}Semantic roles & 50–950 ramp
primary
#2F1863
secondary
#7D993E
accent
#E444B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D