#2E1B8E#2E1B8E
#2E1B8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.174 H 279.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B8E |
|---|---|
| RGB | rgb(46, 27, 142) |
| HSL | hsl(250, 68%, 33%) |
| HSV | hsv(250, 81%, 56%) |
| CMYK | cmyk(67.6%, 81%, 0%, 44.3%) |
| CIE-LAB | lab(21.27, 42.76, -59.64) |
| CIE-LCH | lch(21.27, 73.38, 305.64°) |
| OKLab | oklab(34.04% 0.028 -0.1722) |
| OKLCH | oklch(34.04% 0.174 279.2) |
| XYZ | xyz(6.3996, 3.3172, 25.8890) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.75
Indigo (survey)
#380282
ΔE00 4.36
Cobalt Blue
#030AA7
ΔE00 4.52
Royal Blue (survey)
#0504AA
ΔE00 4.97
Darkblue
#00008B
ΔE00 5.09
Indigo Blue
#3A18B1
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B8E #7B8E1B
analogous
#1B418E #2E1B8E #671B8E
triadic
#2E1B8E #8E2E1B #1B8E2E
tetradic
#2E1B8E #8E1B41 #7B8E1B #1B8E67
square
#2E1B8E #8E1B41 #7B8E1B #1B8E67
split-complementary
#2E1B8E #8E671B #418E1B
monochromatic
#0D0727 #1D115B #2E1B8E #3F25C1 #6047DC
Accessibility & contrast
On white
12.62
#2E1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2E1B8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B8E
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B8E | 1.00 | 12.62 | 1.66 | 12.62 |
| #FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e1b8e; /* rgb */ color: rgb(46, 27, 142); /* oklch */ color: oklch(34.0% 0.174 279.2);
Tailwind
colors: {
custom: {
50: '#755bb0',
500: '#2e1b8e',
950: '#000000',
},
}SCSS
$custom: #2e1b8e; $custom-light: #755bb0; $custom-dark: #000000;
JSON
{
"hex": "#2e1b8e",
"rgb": {
"r": 46,
"g": 27,
"b": 142
},
"hsl": {
"h": 249.913,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.34039,
"c": 0.17449,
"h": 279.2
},
"luminance": 0.03318
}Semantic roles & 50–950 ramp
primary
#2E1B8E
secondary
#AABE47
accent
#EB3DCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980