#2F1F87#2F1F87
#2F1F87 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.162 H 280.3°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F87 |
|---|---|
| RGB | rgb(47, 31, 135) |
| HSL | hsl(249, 63%, 33%) |
| HSV | hsv(249, 77%, 53%) |
| CMYK | cmyk(65.2%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(21.33, 38.55, -55.16) |
| CIE-LCH | lch(21.33, 67.30, 304.95°) |
| OKLab | oklab(33.88% 0.0291 -0.1592) |
| OKLCH | oklch(33.88% 0.162 280.3) |
| XYZ | xyz(6.0341, 3.3331, 23.2424) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.58
Midnight Blue
#191970
ΔE00 4.43
Indigo (survey)
#380282
ΔE00 4.91
Cobalt Blue
#030AA7
ΔE00 5.83
Darkblue
#00008B
ΔE00 5.95
Indigo Blue
#3A18B1
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F87 #77871F
analogous
#1F4387 #2F1F87 #631F87
triadic
#2F1F87 #872F1F #1F872F
tetradic
#2F1F87 #871F43 #77871F #1F8763
square
#2F1F87 #871F43 #77871F #1F8763
split-complementary
#2F1F87 #87631F #43871F
monochromatic
#0C0823 #1E1455 #2F1F87 #402AB9 #604BD6
Accessibility & contrast
On white
12.60
#2F1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2F1F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F87
12.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F87 | 1.00 | 12.60 | 1.67 | 12.60 |
| #FFFFFF | 12.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f1f87; /* rgb */ color: rgb(47, 31, 135); /* oklch */ color: oklch(33.9% 0.162 280.3);
Tailwind
colors: {
custom: {
50: '#745dab',
500: '#2f1f87',
950: '#000000',
},
}SCSS
$custom: #2f1f87; $custom-light: #745dab; $custom-dark: #000000;
JSON
{
"hex": "#2f1f87",
"rgb": {
"r": 47,
"g": 31,
"b": 135
},
"hsl": {
"h": 249.231,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.33876,
"c": 0.16182,
"h": 280.3
},
"luminance": 0.03334
}Semantic roles & 50–950 ramp
primary
#2F1F87
secondary
#A7B84A
accent
#E642CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F