#2F1FB4#2F1FB4
#2F1FB4 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.216 H 274.5°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1FB4 |
|---|---|
| RGB | rgb(47, 31, 180) |
| HSL | hsl(246, 71%, 41%) |
| HSV | hsv(246, 83%, 71%) |
| CMYK | cmyk(73.9%, 82.8%, 0%, 29.4%) |
| CIE-LAB | lab(26.39, 52.54, -74.32) |
| CIE-LCH | lch(26.39, 91.02, 305.25°) |
| OKLab | oklab(38.88% 0.0168 -0.2149) |
| OKLCH | oklch(38.88% 0.216 274.5) |
| XYZ | xyz(9.8978, 4.8786, 43.5912) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.60
True Blue
#010FCC
ΔE00 3.38
Ultramarine
#2000B1
ΔE00 3.92
Mediumblue
#0000CD
ΔE00 4.05
Cobalt Blue
#030AA7
ΔE00 4.52
Royal Blue (survey)
#0504AA
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1FB4 #A4B41F
analogous
#1F5AB4 #2F1FB4 #7A1FB4
triadic
#2F1FB4 #B42F1F #1FB42F
tetradic
#2F1FB4 #B41F5A #A4B41F #1FB47A
square
#2F1FB4 #B41F5A #A4B41F #1FB47A
split-complementary
#2F1FB4 #B47A1F #5AB41F
monochromatic
#140D4C #211680 #2F1FB4 #4634DC #7668E5
Accessibility & contrast
On white
10.63
#2F1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#2F1FB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1FB4
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1FB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1FB4 | 1.00 | 10.63 | 1.98 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0037B2
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f1fb4; /* rgb */ color: rgb(47, 31, 180); /* oklch */ color: oklch(38.9% 0.216 274.5);
Tailwind
colors: {
custom: {
50: '#7e60cc',
500: '#2f1fb4',
950: '#000000',
},
}SCSS
$custom: #2f1fb4; $custom-light: #7e60cc; $custom-dark: #000000;
JSON
{
"hex": "#2f1fb4",
"rgb": {
"r": 47,
"g": 31,
"b": 180
},
"hsl": {
"h": 246.443,
"s": 70.616,
"l": 41.373
},
"oklch": {
"l": 0.38882,
"c": 0.21557,
"h": 274.5
},
"luminance": 0.0488
}Semantic roles & 50–950 ramp
primary
#2F1FB4
secondary
#C0CB64
accent
#ED3ADA
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982