#2F1BA1#2F1BA1
#2F1BA1 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.197 H 276.9°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1BA1 |
|---|---|
| RGB | rgb(47, 27, 161) |
| HSL | hsl(249, 71%, 37%) |
| HSV | hsv(249, 83%, 63%) |
| CMYK | cmyk(70.8%, 83.2%, 0%, 36.9%) |
| CIE-LAB | lab(23.54, 48.64, -67.58) |
| CIE-LCH | lch(23.54, 83.27, 305.74°) |
| OKLab | oklab(36.27% 0.0238 -0.1953) |
| OKLCH | oklch(36.27% 0.197 276.9) |
| XYZ | xyz(7.9952, 3.9607, 34.0544) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.54
Cobalt Blue
#030AA7
ΔE00 3.32
Royal
#0C1793
ΔE00 3.48
Ultramarine
#2000B1
ΔE00 3.51
Royal Blue (survey)
#0504AA
ΔE00 3.66
True Blue
#010FCC
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1BA1 #8DA11B
analogous
#1B4AA1 #2F1BA1 #721BA1
triadic
#2F1BA1 #A12F1B #1BA12F
tetradic
#2F1BA1 #A11B4A #8DA11B #1BA172
square
#2F1BA1 #A11B4A #8DA11B #1BA172
split-complementary
#2F1BA1 #A1721B #4AA11B
monochromatic
#100938 #20126D #2F1BA1 #3E24D5 #6954E2
Accessibility & contrast
On white
11.72
#2F1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2F1BA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1BA1
11.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1BA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1BA1 | 1.00 | 11.72 | 1.79 | 11.72 |
| #FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2f1ba1; /* rgb */ color: rgb(47, 27, 161); /* oklch */ color: oklch(36.3% 0.197 276.9);
Tailwind
colors: {
custom: {
50: '#7a5dbe',
500: '#2f1ba1',
950: '#000000',
},
}SCSS
$custom: #2f1ba1; $custom-light: #7a5dbe; $custom-dark: #000000;
JSON
{
"hex": "#2f1ba1",
"rgb": {
"r": 47,
"g": 27,
"b": 161
},
"hsl": {
"h": 248.955,
"s": 71.277,
"l": 36.863
},
"oklch": {
"l": 0.36271,
"c": 0.19673,
"h": 276.9
},
"luminance": 0.03961
}Semantic roles & 50–950 ramp
primary
#2F1BA1
secondary
#B4C552
accent
#EE3AD3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981