#2E1F89#2E1F89
#2E1F89 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.165 H 279.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F89 |
|---|---|
| RGB | rgb(46, 31, 137) |
| HSL | hsl(248, 63%, 33%) |
| HSV | hsv(248, 77%, 54%) |
| CMYK | cmyk(66.4%, 77.4%, 0%, 46.3%) |
| CIE-LAB | lab(21.46, 39.07, -56.22) |
| CIE-LCH | lch(21.46, 68.46, 304.80°) |
| OKLab | oklab(34.01% 0.0271 -0.1623) |
| OKLCH | oklch(34.01% 0.165 279.5) |
| XYZ | xyz(6.1306, 3.3665, 23.9888) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.32
Midnight Blue
#191970
ΔE00 4.60
Indigo (survey)
#380282
ΔE00 4.99
Cobalt Blue
#030AA7
ΔE00 5.55
Darkblue
#00008B
ΔE00 5.84
Indigo Blue
#3A18B1
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F89 #7A891F
analogous
#1F4589 #2E1F89 #631F89
triadic
#2E1F89 #892E1F #1F892E
tetradic
#2E1F89 #891F45 #7A891F #1F8963
square
#2E1F89 #891F45 #7A891F #1F8963
split-complementary
#2E1F89 #89631F #45891F
monochromatic
#0C0825 #1D1457 #2E1F89 #3F2ABB #604CD6
Accessibility & contrast
On white
12.55
#2E1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2E1F89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F89
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F89 | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e1f89; /* rgb */ color: rgb(46, 31, 137); /* oklch */ color: oklch(34.0% 0.165 279.5);
Tailwind
colors: {
custom: {
50: '#745dad',
500: '#2e1f89',
950: '#000000',
},
}SCSS
$custom: #2e1f89; $custom-light: #745dad; $custom-dark: #000000;
JSON
{
"hex": "#2e1f89",
"rgb": {
"r": 46,
"g": 31,
"b": 137
},
"hsl": {
"h": 248.491,
"s": 63.095,
"l": 32.941
},
"oklch": {
"l": 0.34005,
"c": 0.16453,
"h": 279.5
},
"luminance": 0.03367
}Semantic roles & 50–950 ramp
primary
#2E1F89
secondary
#AAB94B
accent
#E642CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F