#2F1972#2F1972
#2F1972 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.142 H 286.0°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1972 |
|---|---|
| RGB | rgb(47, 25, 114) |
| HSL | hsl(255, 64%, 27%) |
| HSV | hsv(255, 78%, 45%) |
| CMYK | cmyk(58.8%, 78.1%, 0%, 55.3%) |
| CIE-LAB | lab(17.98, 35.16, -47.30) |
| CIE-LCH | lch(17.98, 58.94, 306.62°) |
| OKLab | oklab(30.86% 0.039 -0.1362) |
| OKLCH | oklch(30.86% 0.142 286) |
| XYZ | xyz(4.5563, 2.5142, 16.1615) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.11
Indigo (survey)
#380282
ΔE00 4.63
Dark Royal Blue
#02066F
ΔE00 5.40
Darkblue (survey)
#030764
ΔE00 5.69
Deep Blue
#040273
ΔE00 5.71
Dark Indigo
#1F0954
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1972 #5C7219
analogous
#193072 #2F1972 #5B1972
triadic
#2F1972 #722F19 #19722F
tetradic
#2F1972 #721930 #5C7219 #19725B
square
#2F1972 #721930 #5C7219 #19725B
split-complementary
#2F1972 #725B19 #307219
monochromatic
#0A0619 #1A0E40 #2F1972 #4424A4 #5A33D2
Accessibility & contrast
On white
13.97
#2F1972 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2F1972 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1972
13.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1972 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1972 | 1.00 | 13.97 | 1.50 | 13.97 |
| #FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#0F3244
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f1972; /* rgb */ color: rgb(47, 25, 114); /* oklch */ color: oklch(30.9% 0.142 286.0);
Tailwind
colors: {
custom: {
50: '#70589b',
500: '#2f1972',
950: '#000000',
},
}SCSS
$custom: #2f1972; $custom-light: #70589b; $custom-dark: #000000;
JSON
{
"hex": "#2f1972",
"rgb": {
"r": 47,
"g": 25,
"b": 114
},
"hsl": {
"h": 254.831,
"s": 64.029,
"l": 27.255
},
"oklch": {
"l": 0.30859,
"c": 0.14166,
"h": 286
},
"luminance": 0.02515
}Semantic roles & 50–950 ramp
primary
#2F1972
secondary
#8EA740
accent
#E741BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E