#2F1B7F#2F1B7F
#2F1B7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.156 H 282.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B7F |
|---|---|
| RGB | rgb(47, 27, 127) |
| HSL | hsl(252, 65%, 30%) |
| HSV | hsv(252, 79%, 50%) |
| CMYK | cmyk(63%, 78.7%, 0%, 50.2%) |
| CIE-LAB | lab(19.72, 38.17, -52.77) |
| CIE-LCH | lch(19.72, 65.13, 305.88°) |
| OKLab | oklab(32.49% 0.0339 -0.1522) |
| OKLCH | oklch(32.49% 0.156 282.6) |
| XYZ | xyz(5.3938, 2.9201, 20.3540) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.61
Indigo (survey)
#380282
ΔE00 4.10
Royal
#0C1793
ΔE00 4.18
Darkblue
#00008B
ΔE00 5.62
Navy
#000080
ΔE00 5.69
Dark Royal Blue
#02066F
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B7F #6B7F1B
analogous
#1B397F #2F1B7F #611B7F
triadic
#2F1B7F #7F2F1B #1B7F2F
tetradic
#2F1B7F #7F1B39 #6B7F1B #1B7F61
square
#2F1B7F #7F1B39 #6B7F1B #1B7F61
split-complementary
#2F1B7F #7F611B #397F1B
monochromatic
#0A061A #1C104D #2F1B7F #4226B1 #5D3ED6
Accessibility & contrast
On white
13.26
#2F1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2F1B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B7F
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B7F | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1b7f; /* rgb */ color: rgb(47, 27, 127); /* oklch */ color: oklch(32.5% 0.156 282.6);
Tailwind
colors: {
custom: {
50: '#735aa5',
500: '#2f1b7f',
950: '#000000',
},
}SCSS
$custom: #2f1b7f; $custom-light: #735aa5; $custom-dark: #000000;
JSON
{
"hex": "#2f1b7f",
"rgb": {
"r": 47,
"g": 27,
"b": 127
},
"hsl": {
"h": 252,
"s": 64.935,
"l": 30.196
},
"oklch": {
"l": 0.3249,
"c": 0.15589,
"h": 282.6
},
"luminance": 0.02921
}Semantic roles & 50–950 ramp
primary
#2F1B7F
secondary
#9CB343
accent
#E840C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F