#2E1F86#2E1F86
#2E1F86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.161 H 280.0°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F86 |
|---|---|
| RGB | rgb(46, 31, 134) |
| HSL | hsl(249, 62%, 32%) |
| HSV | hsv(249, 77%, 53%) |
| CMYK | cmyk(65.7%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.14, 38.10, -54.86) |
| CIE-LCH | lch(21.14, 66.79, 304.78°) |
| OKLab | oklab(33.69% 0.0278 -0.1583) |
| OKLCH | oklch(33.69% 0.161 280) |
| XYZ | xyz(5.9184, 3.2816, 22.8712) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.57
Midnight Blue
#191970
ΔE00 4.24
Indigo (survey)
#380282
ΔE00 4.97
Cobalt Blue
#030AA7
ΔE00 5.92
Darkblue
#00008B
ΔE00 5.93
Navy
#000080
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F86 #77861F
analogous
#1F4386 #2E1F86 #621F86
triadic
#2E1F86 #862E1F #1F862E
tetradic
#2E1F86 #861F43 #77861F #1F8662
square
#2E1F86 #861F43 #77861F #1F8662
split-complementary
#2E1F86 #86621F #43861F
monochromatic
#0C0823 #1D1454 #2E1F86 #3F2AB8 #5E4AD5
Accessibility & contrast
On white
12.68
#2E1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2E1F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F86
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F86 | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e1f86; /* rgb */ color: rgb(46, 31, 134); /* oklch */ color: oklch(33.7% 0.161 280.0);
Tailwind
colors: {
custom: {
50: '#735daa',
500: '#2e1f86',
950: '#000000',
},
}SCSS
$custom: #2e1f86; $custom-light: #735daa; $custom-dark: #000000;
JSON
{
"hex": "#2e1f86",
"rgb": {
"r": 46,
"g": 31,
"b": 134
},
"hsl": {
"h": 248.738,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33686,
"c": 0.16076,
"h": 280
},
"luminance": 0.03282
}Semantic roles & 50–950 ramp
primary
#2E1F86
secondary
#A8B849
accent
#E542CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F