#2F1281#2F1281
#2F1281 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.166 H 283.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1281 |
|---|---|
| RGB | rgb(47, 18, 129) |
| HSL | hsl(256, 76%, 29%) |
| HSV | hsv(256, 86%, 51%) |
| CMYK | cmyk(63.6%, 86%, 0%, 49.4%) |
| CIE-LAB | lab(18.46, 43.08, -56.12) |
| CIE-LCH | lch(18.46, 70.75, 307.51°) |
| OKLab | oklab(31.68% 0.0387 -0.1618) |
| OKLCH | oklch(31.68% 0.166 283.4) |
| XYZ | xyz(5.3498, 2.6216, 20.9887) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.41
Royal
#0C1793
ΔE00 4.03
Darkblue
#00008B
ΔE00 4.32
Navy
#000080
ΔE00 4.43
Midnight Blue
#191970
ΔE00 4.45
Indigo
#4B0082
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1281 #648112
analogous
#122D81 #2F1281 #671281
triadic
#2F1281 #812F12 #12812F
tetradic
#2F1281 #81122D #648112 #128167
square
#2F1281 #81122D #648112 #128167
split-complementary
#2F1281 #816712 #2D8112
monochromatic
#0A041B #1B0B4B #2F1281 #4319B7 #5B2CE2
Accessibility & contrast
On white
13.78
#2F1281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2F1281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1281
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1281 | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2f1281; /* rgb */ color: rgb(47, 18, 129); /* oklch */ color: oklch(31.7% 0.166 283.4);
Tailwind
colors: {
custom: {
50: '#7456a7',
500: '#2f1281',
950: '#000000',
},
}SCSS
$custom: #2f1281; $custom-light: #7456a7; $custom-dark: #000000;
JSON
{
"hex": "#2f1281",
"rgb": {
"r": 47,
"g": 18,
"b": 129
},
"hsl": {
"h": 255.676,
"s": 75.51,
"l": 28.824
},
"oklch": {
"l": 0.31681,
"c": 0.16638,
"h": 283.4
},
"luminance": 0.02622
}Semantic roles & 50–950 ramp
primary
#2F1281
secondary
#96B738
accent
#F236C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F