#2E1B9E#2E1B9E
#2E1B9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.9% C 0.193 H 276.9°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B9E |
|---|---|
| RGB | rgb(46, 27, 158) |
| HSL | hsl(249, 71%, 36%) |
| HSV | hsv(249, 83%, 62%) |
| CMYK | cmyk(70.9%, 82.9%, 0%, 38%) |
| CIE-LAB | lab(23.11, 47.66, -66.47) |
| CIE-LCH | lch(23.11, 81.79, 305.64°) |
| OKLab | oklab(35.85% 0.0232 -0.1921) |
| OKLCH | oklch(35.85% 0.193 276.9) |
| XYZ | xyz(7.6882, 3.8326, 32.6757) |
| Luminance | 0.0383 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.96
Royal
#0C1793
ΔE00 3.15
Cobalt Blue
#030AA7
ΔE00 3.33
Royal Blue (survey)
#0504AA
ΔE00 3.71
Ultramarine
#2000B1
ΔE00 3.71
Indigo (survey)
#380282
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B9E #8B9E1B
analogous
#1B4A9E #2E1B9E #701B9E
triadic
#2E1B9E #9E2E1B #1B9E2E
tetradic
#2E1B9E #9E1B4A #8B9E1B #1B9E70
square
#2E1B9E #9E1B4A #8B9E1B #1B9E70
split-complementary
#2E1B9E #9E701B #4A9E1B
monochromatic
#100935 #1F126A #2E1B9E #3D24D2 #6752E1
Accessibility & contrast
On white
11.89
#2E1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#2E1B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B9E
11.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B9E | 1.00 | 11.89 | 1.77 | 11.89 |
| #FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2e1b9e; /* rgb */ color: rgb(46, 27, 158); /* oklch */ color: oklch(35.9% 0.193 276.9);
Tailwind
colors: {
custom: {
50: '#795cbc',
500: '#2e1b9e',
950: '#000000',
},
}SCSS
$custom: #2e1b9e; $custom-light: #795cbc; $custom-dark: #000000;
JSON
{
"hex": "#2e1b9e",
"rgb": {
"r": 46,
"g": 27,
"b": 158
},
"hsl": {
"h": 248.702,
"s": 70.811,
"l": 36.275
},
"oklch": {
"l": 0.35852,
"c": 0.19348,
"h": 276.9
},
"luminance": 0.03833
}Semantic roles & 50–950 ramp
primary
#2E1B9E
secondary
#B3C451
accent
#EE3AD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981