#2E1F88#2E1F88
#2E1F88 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.163 H 279.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F88 |
|---|---|
| RGB | rgb(46, 31, 136) |
| HSL | hsl(249, 63%, 33%) |
| HSV | hsv(249, 77%, 53%) |
| CMYK | cmyk(66.2%, 77.2%, 0%, 46.7%) |
| CIE-LAB | lab(21.35, 38.75, -55.76) |
| CIE-LCH | lch(21.35, 67.91, 304.80°) |
| OKLab | oklab(33.9% 0.0273 -0.161) |
| OKLCH | oklch(33.9% 0.163 279.6) |
| XYZ | xyz(6.0592, 3.3379, 23.6128) |
| Luminance | 0.0334 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.40
Midnight Blue
#191970
ΔE00 4.48
Indigo (survey)
#380282
ΔE00 4.98
Cobalt Blue
#030AA7
ΔE00 5.67
Darkblue
#00008B
ΔE00 5.87
Indigo Blue
#3A18B1
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F88 #79881F
analogous
#1F4588 #2E1F88 #621F88
triadic
#2E1F88 #882E1F #1F882E
tetradic
#2E1F88 #881F45 #79881F #1F8862
square
#2E1F88 #881F45 #79881F #1F8862
split-complementary
#2E1F88 #88621F #45881F
monochromatic
#0C0824 #1D1456 #2E1F88 #3F2ABA #5F4BD6
Accessibility & contrast
On white
12.59
#2E1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2E1F88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F88
12.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F88 | 1.00 | 12.59 | 1.67 | 12.59 |
| #FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e1f88; /* rgb */ color: rgb(46, 31, 136); /* oklch */ color: oklch(33.9% 0.163 279.6);
Tailwind
colors: {
custom: {
50: '#745dac',
500: '#2e1f88',
950: '#000000',
},
}SCSS
$custom: #2e1f88; $custom-light: #745dac; $custom-dark: #000000;
JSON
{
"hex": "#2e1f88",
"rgb": {
"r": 46,
"g": 31,
"b": 136
},
"hsl": {
"h": 248.571,
"s": 62.874,
"l": 32.745
},
"oklch": {
"l": 0.33898,
"c": 0.16327,
"h": 279.6
},
"luminance": 0.03338
}Semantic roles & 50–950 ramp
primary
#2E1F88
secondary
#A9B94A
accent
#E642CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F