#2F1F85#2F1F85
#2F1F85 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.159 H 280.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F85 |
|---|---|
| RGB | rgb(47, 31, 133) |
| HSL | hsl(249, 62%, 32%) |
| HSV | hsv(249, 77%, 52%) |
| CMYK | cmyk(64.7%, 76.7%, 0%, 47.8%) |
| CIE-LAB | lab(21.12, 37.91, -54.25) |
| CIE-LCH | lch(21.12, 66.18, 304.94°) |
| OKLab | oklab(33.67% 0.0296 -0.1565) |
| OKLCH | oklch(33.67% 0.159 280.7) |
| XYZ | xyz(5.8946, 3.2773, 22.5077) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.76
Midnight Blue
#191970
ΔE00 4.20
Indigo (survey)
#380282
ΔE00 4.90
Darkblue
#00008B
ΔE00 6.02
Cobalt Blue
#030AA7
ΔE00 6.09
Navy
#000080
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F85 #75851F
analogous
#1F4285 #2F1F85 #621F85
triadic
#2F1F85 #852F1F #1F852F
tetradic
#2F1F85 #851F42 #75851F #1F8562
square
#2F1F85 #851F42 #75851F #1F8562
split-complementary
#2F1F85 #85621F #42851F
monochromatic
#0C0822 #1D1353 #2F1F85 #412BB7 #5F4AD5
Accessibility & contrast
On white
12.68
#2F1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2F1F85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F85
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F85 | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1f85; /* rgb */ color: rgb(47, 31, 133); /* oklch */ color: oklch(33.7% 0.159 280.7);
Tailwind
colors: {
custom: {
50: '#745daa',
500: '#2f1f85',
950: '#000000',
},
}SCSS
$custom: #2f1f85; $custom-light: #745daa; $custom-dark: #000000;
JSON
{
"hex": "#2f1f85",
"rgb": {
"r": 47,
"g": 31,
"b": 133
},
"hsl": {
"h": 249.412,
"s": 62.195,
"l": 32.157
},
"oklch": {
"l": 0.33665,
"c": 0.15929,
"h": 280.7
},
"luminance": 0.03278
}Semantic roles & 50–950 ramp
primary
#2F1F85
secondary
#A6B749
accent
#E543CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F