#2E1FB4#2E1FB4
#2E1FB4 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.8% C 0.216 H 274.1°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1FB4 |
|---|---|
| RGB | rgb(46, 31, 180) |
| HSL | hsl(246, 71%, 41%) |
| HSV | hsv(246, 83%, 71%) |
| CMYK | cmyk(74.4%, 82.8%, 0%, 29.4%) |
| CIE-LAB | lab(26.32, 52.47, -74.44) |
| CIE-LCH | lch(26.32, 91.07, 305.18°) |
| OKLab | oklab(38.82% 0.0155 -0.2153) |
| OKLCH | oklch(38.82% 0.216 274.1) |
| XYZ | xyz(9.8522, 4.8551, 43.5891) |
| Luminance | 0.0486 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.66
True Blue
#010FCC
ΔE00 3.35
Ultramarine
#2000B1
ΔE00 3.89
Mediumblue
#0000CD
ΔE00 4.02
Cobalt Blue
#030AA7
ΔE00 4.47
Royal Blue (survey)
#0504AA
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1FB4 #A5B41F
analogous
#1F5BB4 #2E1FB4 #791FB4
triadic
#2E1FB4 #B42E1F #1FB42E
tetradic
#2E1FB4 #B41F5B #A5B41F #1FB479
square
#2E1FB4 #B41F5B #A5B41F #1FB479
split-complementary
#2E1FB4 #B4791F #5BB41F
monochromatic
#130D4C #211680 #2E1FB4 #4534DC #7568E5
Accessibility & contrast
On white
10.65
#2E1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2E1FB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1FB4
10.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1FB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1FB4 | 1.00 | 10.65 | 1.97 | 10.65 |
| #FFFFFF | 10.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.65 | 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: #2e1fb4; /* rgb */ color: rgb(46, 31, 180); /* oklch */ color: oklch(38.8% 0.216 274.1);
Tailwind
colors: {
custom: {
50: '#7e60cc',
500: '#2e1fb4',
950: '#000000',
},
}SCSS
$custom: #2e1fb4; $custom-light: #7e60cc; $custom-dark: #000000;
JSON
{
"hex": "#2e1fb4",
"rgb": {
"r": 46,
"g": 31,
"b": 180
},
"hsl": {
"h": 246.04,
"s": 70.616,
"l": 41.373
},
"oklch": {
"l": 0.38817,
"c": 0.21582,
"h": 274.1
},
"luminance": 0.04856
}Semantic roles & 50–950 ramp
primary
#2E1FB4
secondary
#C0CB64
accent
#ED3ADB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982