#2F1C80#2F1C80
#2F1C80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.156 H 282.2°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1C80 |
|---|---|
| RGB | rgb(47, 28, 128) |
| HSL | hsl(251, 64%, 31%) |
| HSV | hsv(251, 78%, 50%) |
| CMYK | cmyk(63.3%, 78.1%, 0%, 49.8%) |
| CIE-LAB | lab(20.02, 37.95, -52.92) |
| CIE-LCH | lch(20.02, 65.12, 305.65°) |
| OKLab | oklab(32.73% 0.0329 -0.1526) |
| OKLCH | oklch(32.73% 0.156 282.2) |
| XYZ | xyz(5.4826, 2.9930, 20.7067) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.68
Royal
#0C1793
ΔE00 4.10
Indigo (survey)
#380282
ΔE00 4.29
Darkblue
#00008B
ΔE00 5.73
Navy
#000080
ΔE00 5.84
Dark Royal Blue
#02066F
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1C80 #6D801C
analogous
#1C3B80 #2F1C80 #611C80
triadic
#2F1C80 #802F1C #1C802F
tetradic
#2F1C80 #801C3B #6D801C #1C8061
square
#2F1C80 #801C3B #6D801C #1C8061
split-complementary
#2F1C80 #80611C #3B801C
monochromatic
#0A061C #1D114E #2F1C80 #4127B2 #5D41D5
Accessibility & contrast
On white
13.14
#2F1C80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2F1C80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1C80
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1C80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1C80 | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1c80; /* rgb */ color: rgb(47, 28, 128); /* oklch */ color: oklch(32.7% 0.156 282.2);
Tailwind
colors: {
custom: {
50: '#735ba6',
500: '#2f1c80',
950: '#000000',
},
}SCSS
$custom: #2f1c80; $custom-light: #735ba6; $custom-dark: #000000;
JSON
{
"hex": "#2f1c80",
"rgb": {
"r": 47,
"g": 28,
"b": 128
},
"hsl": {
"h": 251.4,
"s": 64.103,
"l": 30.588
},
"oklch": {
"l": 0.32729,
"c": 0.15612,
"h": 282.2
},
"luminance": 0.02993
}Semantic roles & 50–950 ramp
primary
#2F1C80
secondary
#9EB344
accent
#E741C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F