#2F1B80#2F1B80
#2F1B80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.157 H 282.4°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B80 |
|---|---|
| RGB | rgb(47, 27, 128) |
| HSL | hsl(252, 65%, 30%) |
| HSV | hsv(252, 79%, 50%) |
| CMYK | cmyk(63.3%, 78.9%, 0%, 49.8%) |
| CIE-LAB | lab(19.83, 38.49, -53.23) |
| CIE-LCH | lch(19.83, 65.68, 305.87°) |
| OKLab | oklab(32.6% 0.0336 -0.1535) |
| OKLCH | oklch(32.6% 0.157 282.4) |
| XYZ | xyz(5.4593, 2.9463, 20.6989) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.71
Royal
#0C1793
ΔE00 4.06
Indigo (survey)
#380282
ΔE00 4.07
Darkblue
#00008B
ΔE00 5.55
Navy
#000080
ΔE00 5.67
Dark Royal Blue
#02066F
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B80 #6C801B
analogous
#1B3A80 #2F1B80 #611B80
triadic
#2F1B80 #802F1B #1B802F
tetradic
#2F1B80 #801B3A #6C801B #1B8061
square
#2F1B80 #801B3A #6C801B #1B8061
split-complementary
#2F1B80 #80611B #3A801B
monochromatic
#0A061B #1C104D #2F1B80 #4226B3 #5D3FD6
Accessibility & contrast
On white
13.21
#2F1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1B80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B80
13.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B80 | 1.00 | 13.21 | 1.59 | 13.21 |
| #FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1b80; /* rgb */ color: rgb(47, 27, 128); /* oklch */ color: oklch(32.6% 0.157 282.4);
Tailwind
colors: {
custom: {
50: '#735aa6',
500: '#2f1b80',
950: '#000000',
},
}SCSS
$custom: #2f1b80; $custom-light: #735aa6; $custom-dark: #000000;
JSON
{
"hex": "#2f1b80",
"rgb": {
"r": 47,
"g": 27,
"b": 128
},
"hsl": {
"h": 251.881,
"s": 65.161,
"l": 30.392
},
"oklch": {
"l": 0.32597,
"c": 0.15714,
"h": 282.4
},
"luminance": 0.02947
}Semantic roles & 50–950 ramp
primary
#2F1B80
secondary
#9DB443
accent
#E840C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F