#2F1B83#2F1B83
#2F1B83 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.161 H 281.8°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B83 |
|---|---|
| RGB | rgb(47, 27, 131) |
| HSL | hsl(252, 66%, 31%) |
| HSV | hsv(252, 79%, 51%) |
| CMYK | cmyk(64.1%, 79.4%, 0%, 48.6%) |
| CIE-LAB | lab(20.15, 39.43, -54.59) |
| CIE-LCH | lch(20.15, 67.34, 305.84°) |
| OKLab | oklab(32.92% 0.0328 -0.1575) |
| OKLCH | oklch(32.92% 0.161 281.8) |
| XYZ | xyz(5.6597, 3.0265, 21.7543) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.71
Midnight Blue
#191970
ΔE00 4.02
Indigo (survey)
#380282
ΔE00 4.02
Darkblue
#00008B
ΔE00 5.38
Navy
#000080
ΔE00 5.62
Indigo
#4B0082
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B83 #6F831B
analogous
#1B3B83 #2F1B83 #631B83
triadic
#2F1B83 #832F1B #1B832F
tetradic
#2F1B83 #831B3B #6F831B #1B8363
square
#2F1B83 #831B3B #6F831B #1B8363
split-complementary
#2F1B83 #83631B #3B831B
monochromatic
#0B061E #1D1150 #2F1B83 #4125B6 #5E41D8
Accessibility & contrast
On white
13.08
#2F1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2F1B83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B83
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B83 | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f1b83; /* rgb */ color: rgb(47, 27, 131); /* oklch */ color: oklch(32.9% 0.161 281.8);
Tailwind
colors: {
custom: {
50: '#735ba8',
500: '#2f1b83',
950: '#000000',
},
}SCSS
$custom: #2f1b83; $custom-light: #735ba8; $custom-dark: #000000;
JSON
{
"hex": "#2f1b83",
"rgb": {
"r": 47,
"g": 27,
"b": 131
},
"hsl": {
"h": 251.538,
"s": 65.823,
"l": 30.98
},
"oklch": {
"l": 0.32919,
"c": 0.16087,
"h": 281.8
},
"luminance": 0.03027
}Semantic roles & 50–950 ramp
primary
#2F1B83
secondary
#A0B643
accent
#E93FC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F