#2F1971#2F1971
#2F1971 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.140 H 286.3°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1971 |
|---|---|
| RGB | rgb(47, 25, 113) |
| HSL | hsl(255, 64%, 27%) |
| HSV | hsv(255, 78%, 44%) |
| CMYK | cmyk(58.4%, 77.9%, 0%, 55.7%) |
| CIE-LAB | lab(17.88, 34.84, -46.82) |
| CIE-LCH | lch(17.88, 58.36, 306.65°) |
| OKLab | oklab(30.76% 0.0393 -0.1348) |
| OKLCH | oklch(30.76% 0.14 286.3) |
| XYZ | xyz(4.4997, 2.4916, 15.8634) |
| Luminance | 0.0249 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.13
Indigo (survey)
#380282
ΔE00 4.74
Dark Royal Blue
#02066F
ΔE00 5.43
Dark Indigo
#1F0954
ΔE00 5.62
Darkblue (survey)
#030764
ΔE00 5.67
Deep Blue
#040273
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1971 #5B7119
analogous
#192F71 #2F1971 #5B1971
triadic
#2F1971 #712F19 #19712F
tetradic
#2F1971 #71192F #5B7119 #19715B
square
#2F1971 #71192F #5B7119 #19715B
split-complementary
#2F1971 #715B19 #2F7119
monochromatic
#0A0619 #1A0E3F #2F1971 #4424A3 #5A33D2
Accessibility & contrast
On white
14.01
#2F1971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2F1971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1971
14.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1971 | 1.00 | 14.01 | 1.50 | 14.01 |
| #FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#113144
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f1971; /* rgb */ color: rgb(47, 25, 113); /* oklch */ color: oklch(30.8% 0.140 286.3);
Tailwind
colors: {
custom: {
50: '#70589b',
500: '#2f1971',
950: '#000000',
},
}SCSS
$custom: #2f1971; $custom-light: #70589b; $custom-dark: #000000;
JSON
{
"hex": "#2f1971",
"rgb": {
"r": 47,
"g": 25,
"b": 113
},
"hsl": {
"h": 255,
"s": 63.768,
"l": 27.059
},
"oklch": {
"l": 0.30756,
"c": 0.14039,
"h": 286.3
},
"luminance": 0.02492
}Semantic roles & 50–950 ramp
primary
#2F1971
secondary
#8DA640
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E