#2E1D87#2E1D87
#2E1D87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.164 H 280.1°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1D87 |
|---|---|
| RGB | rgb(46, 29, 135) |
| HSL | hsl(250, 65%, 32%) |
| HSV | hsv(250, 79%, 53%) |
| CMYK | cmyk(65.9%, 78.5%, 0%, 47.1%) |
| CIE-LAB | lab(20.86, 39.52, -55.94) |
| CIE-LCH | lch(20.86, 68.49, 305.24°) |
| OKLab | oklab(33.52% 0.0289 -0.1615) |
| OKLCH | oklch(33.52% 0.164 280.1) |
| XYZ | xyz(5.9379, 3.2084, 23.2233) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.32
Midnight Blue
#191970
ΔE00 4.35
Indigo (survey)
#380282
ΔE00 4.53
Darkblue
#00008B
ΔE00 5.51
Cobalt Blue
#030AA7
ΔE00 5.55
Navy
#000080
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1D87 #76871D
analogous
#1D4187 #2E1D87 #631D87
triadic
#2E1D87 #872E1D #1D872E
tetradic
#2E1D87 #871D41 #76871D #1D8763
square
#2E1D87 #871D41 #76871D #1D8763
split-complementary
#2E1D87 #87631D #41871D
monochromatic
#0C0722 #1D1255 #2E1D87 #3F28B9 #5E47D7
Accessibility & contrast
On white
12.79
#2E1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2E1D87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1D87
12.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1D87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1D87 | 1.00 | 12.79 | 1.64 | 12.79 |
| #FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2e1d87; /* rgb */ color: rgb(46, 29, 135); /* oklch */ color: oklch(33.5% 0.164 280.1);
Tailwind
colors: {
custom: {
50: '#745cab',
500: '#2e1d87',
950: '#000000',
},
}SCSS
$custom: #2e1d87; $custom-light: #745cab; $custom-dark: #000000;
JSON
{
"hex": "#2e1d87",
"rgb": {
"r": 46,
"g": 29,
"b": 135
},
"hsl": {
"h": 249.623,
"s": 64.634,
"l": 32.157
},
"oklch": {
"l": 0.33522,
"c": 0.16404,
"h": 280.1
},
"luminance": 0.03209
}Semantic roles & 50–950 ramp
primary
#2E1D87
secondary
#A7B946
accent
#E840CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F