#2F1F86#2F1F86
#2F1F86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.161 H 280.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F86 |
|---|---|
| RGB | rgb(47, 31, 134) |
| HSL | hsl(249, 62%, 32%) |
| HSV | hsv(249, 77%, 53%) |
| CMYK | cmyk(64.9%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.23, 38.23, -54.71) |
| CIE-LCH | lch(21.23, 66.74, 304.94°) |
| OKLab | oklab(33.77% 0.0293 -0.1579) |
| OKLCH | oklch(33.77% 0.161 280.5) |
| XYZ | xyz(5.9640, 3.3051, 22.8733) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.67
Midnight Blue
#191970
ΔE00 4.32
Indigo (survey)
#380282
ΔE00 4.90
Cobalt Blue
#030AA7
ΔE00 5.96
Darkblue
#00008B
ΔE00 5.98
Navy
#000080
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F86 #76861F
analogous
#1F4386 #2F1F86 #621F86
triadic
#2F1F86 #862F1F #1F862F
tetradic
#2F1F86 #861F43 #76861F #1F8662
square
#2F1F86 #861F43 #76861F #1F8662
split-complementary
#2F1F86 #86621F #43861F
monochromatic
#0C0823 #1E1454 #2F1F86 #402AB8 #604AD5
Accessibility & contrast
On white
12.64
#2F1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2F1F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F86
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F86 | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1f86; /* rgb */ color: rgb(47, 31, 134); /* oklch */ color: oklch(33.8% 0.161 280.5);
Tailwind
colors: {
custom: {
50: '#745daa',
500: '#2f1f86',
950: '#000000',
},
}SCSS
$custom: #2f1f86; $custom-light: #745daa; $custom-dark: #000000;
JSON
{
"hex": "#2f1f86",
"rgb": {
"r": 47,
"g": 31,
"b": 134
},
"hsl": {
"h": 249.32,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33771,
"c": 0.16056,
"h": 280.5
},
"luminance": 0.03306
}Semantic roles & 50–950 ramp
primary
#2F1F86
secondary
#A7B849
accent
#E542CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F