#2F1B84#2F1B84
#2F1B84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.162 H 281.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B84 |
|---|---|
| RGB | rgb(47, 27, 132) |
| HSL | hsl(251, 66%, 31%) |
| HSV | hsv(251, 80%, 52%) |
| CMYK | cmyk(64.4%, 79.5%, 0%, 48.2%) |
| CIE-LAB | lab(20.26, 39.75, -55.05) |
| CIE-LCH | lch(20.26, 67.90, 305.83°) |
| OKLab | oklab(33.03% 0.0325 -0.1588) |
| OKLCH | oklch(33.03% 0.162 281.6) |
| XYZ | xyz(5.7278, 3.0537, 22.1129) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.61
Indigo (survey)
#380282
ΔE00 4.02
Midnight Blue
#191970
ΔE00 4.13
Darkblue
#00008B
ΔE00 5.33
Navy
#000080
ΔE00 5.62
Cobalt Blue
#030AA7
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B84 #70841B
analogous
#1B3B84 #2F1B84 #631B84
triadic
#2F1B84 #842F1B #1B842F
tetradic
#2F1B84 #841B3B #70841B #1B8463
square
#2F1B84 #841B3B #70841B #1B8463
split-complementary
#2F1B84 #84631B #3B841B
monochromatic
#0B061E #1D1151 #2F1B84 #4125B7 #5E41D8
Accessibility & contrast
On white
13.04
#2F1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2F1B84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B84
13.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B84 | 1.00 | 13.04 | 1.61 | 13.04 |
| #FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1b84; /* rgb */ color: rgb(47, 27, 132); /* oklch */ color: oklch(33.0% 0.162 281.6);
Tailwind
colors: {
custom: {
50: '#745ba9',
500: '#2f1b84',
950: '#000000',
},
}SCSS
$custom: #2f1b84; $custom-light: #745ba9; $custom-dark: #000000;
JSON
{
"hex": "#2f1b84",
"rgb": {
"r": 47,
"g": 27,
"b": 132
},
"hsl": {
"h": 251.429,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.33027,
"c": 0.1621,
"h": 281.6
},
"luminance": 0.03054
}Semantic roles & 50–950 ramp
primary
#2F1B84
secondary
#A1B743
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F