#2F1B88#2F1B88
#2F1B88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.167 H 280.8°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1B88 |
|---|---|
| RGB | rgb(47, 27, 136) |
| HSL | hsl(251, 67%, 32%) |
| HSV | hsv(251, 80%, 53%) |
| CMYK | cmyk(65.4%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(20.69, 41.00, -56.84) |
| CIE-LCH | lch(20.69, 70.08, 305.80°) |
| OKLab | oklab(33.46% 0.0313 -0.164) |
| OKLCH | oklch(33.46% 0.167 280.8) |
| XYZ | xyz(6.0068, 3.1653, 23.5822) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.23
Indigo (survey)
#380282
ΔE00 4.07
Midnight Blue
#191970
ΔE00 4.59
Darkblue
#00008B
ΔE00 5.20
Cobalt Blue
#030AA7
ΔE00 5.27
Navy
#000080
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1B88 #74881B
analogous
#1B3E88 #2F1B88 #661B88
triadic
#2F1B88 #882F1B #1B882F
tetradic
#2F1B88 #881B3E #74881B #1B8866
square
#2F1B88 #881B3E #74881B #1B8866
split-complementary
#2F1B88 #88661B #3E881B
monochromatic
#0C0722 #1D1155 #2F1B88 #4125BB #5F44DA
Accessibility & contrast
On white
12.86
#2F1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2F1B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1B88
12.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1B88 | 1.00 | 12.86 | 1.63 | 12.86 |
| #FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f1b88; /* rgb */ color: rgb(47, 27, 136); /* oklch */ color: oklch(33.5% 0.167 280.8);
Tailwind
colors: {
custom: {
50: '#755bac',
500: '#2f1b88',
950: '#000000',
},
}SCSS
$custom: #2f1b88; $custom-light: #755bac; $custom-dark: #000000;
JSON
{
"hex": "#2f1b88",
"rgb": {
"r": 47,
"g": 27,
"b": 136
},
"hsl": {
"h": 251.009,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.33461,
"c": 0.16701,
"h": 280.8
},
"luminance": 0.03166
}Semantic roles & 50–950 ramp
primary
#2F1B88
secondary
#A5BB44
accent
#EA3ECA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F