#2F1C85#2F1C85
#2F1C85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.162 H 281.2°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1C85 |
|---|---|
| RGB | rgb(47, 28, 133) |
| HSL | hsl(251, 65%, 32%) |
| HSV | hsv(251, 79%, 52%) |
| CMYK | cmyk(64.7%, 78.9%, 0%, 47.8%) |
| CIE-LAB | lab(20.55, 39.53, -55.20) |
| CIE-LCH | lch(20.55, 67.89, 305.61°) |
| OKLab | oklab(33.26% 0.0316 -0.1593) |
| OKLCH | oklch(33.26% 0.162 281.2) |
| XYZ | xyz(5.8198, 3.1279, 22.4828) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.55
Midnight Blue
#191970
ΔE00 4.21
Indigo (survey)
#380282
ΔE00 4.23
Darkblue
#00008B
ΔE00 5.46
Cobalt Blue
#030AA7
ΔE00 5.75
Navy
#000080
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1C85 #72851C
analogous
#1C3E85 #2F1C85 #641C85
triadic
#2F1C85 #852F1C #1C852F
tetradic
#2F1C85 #851C3E #72851C #1C8564
square
#2F1C85 #851C3E #72851C #1C8564
split-complementary
#2F1C85 #85641C #3E851C
monochromatic
#0B0720 #1D1152 #2F1C85 #4127B8 #5F44D8
Accessibility & contrast
On white
12.92
#2F1C85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2F1C85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1C85
12.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1C85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1C85 | 1.00 | 12.92 | 1.63 | 12.92 |
| #FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1c85; /* rgb */ color: rgb(47, 28, 133); /* oklch */ color: oklch(33.3% 0.162 281.2);
Tailwind
colors: {
custom: {
50: '#745baa',
500: '#2f1c85',
950: '#000000',
},
}SCSS
$custom: #2f1c85; $custom-light: #745baa; $custom-dark: #000000;
JSON
{
"hex": "#2f1c85",
"rgb": {
"r": 47,
"g": 28,
"b": 133
},
"hsl": {
"h": 250.857,
"s": 65.217,
"l": 31.569
},
"oklch": {
"l": 0.33263,
"c": 0.16236,
"h": 281.2
},
"luminance": 0.03128
}Semantic roles & 50–950 ramp
primary
#2F1C85
secondary
#A3B845
accent
#E840CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F