#2E1E87#2E1E87
#2E1E87 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.163 H 280.0°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1E87 |
|---|---|
| RGB | rgb(46, 30, 135) |
| HSL | hsl(249, 64%, 32%) |
| HSV | hsv(249, 78%, 53%) |
| CMYK | cmyk(65.9%, 77.8%, 0%, 47.1%) |
| CIE-LAB | lab(21.05, 38.98, -55.63) |
| CIE-LCH | lch(21.05, 67.93, 305.02°) |
| OKLab | oklab(33.66% 0.0282 -0.1606) |
| OKLCH | oklch(33.66% 0.163 280) |
| XYZ | xyz(5.9628, 3.2582, 23.2316) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.39
Midnight Blue
#191970
ΔE00 4.35
Indigo (survey)
#380282
ΔE00 4.74
Cobalt Blue
#030AA7
ΔE00 5.67
Darkblue
#00008B
ΔE00 5.70
Navy
#000080
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1E87 #77871E
analogous
#1E4287 #2E1E87 #631E87
triadic
#2E1E87 #872E1E #1E872E
tetradic
#2E1E87 #871E42 #77871E #1E8763
square
#2E1E87 #871E42 #77871E #1E8763
split-complementary
#2E1E87 #87631E #42871E
monochromatic
#0C0823 #1D1355 #2E1E87 #3F29B9 #5E49D7
Accessibility & contrast
On white
12.71
#2E1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2E1E87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1E87
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1E87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1E87 | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e1e87; /* rgb */ color: rgb(46, 30, 135); /* oklch */ color: oklch(33.7% 0.163 280.0);
Tailwind
colors: {
custom: {
50: '#745cab',
500: '#2e1e87',
950: '#000000',
},
}SCSS
$custom: #2e1e87; $custom-light: #745cab; $custom-dark: #000000;
JSON
{
"hex": "#2e1e87",
"rgb": {
"r": 46,
"g": 30,
"b": 135
},
"hsl": {
"h": 249.143,
"s": 63.636,
"l": 32.353
},
"oklch": {
"l": 0.33656,
"c": 0.16304,
"h": 280
},
"luminance": 0.03259
}Semantic roles & 50–950 ramp
primary
#2E1E87
secondary
#A8B948
accent
#E741CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F