#2E1B93#2E1B93
#2E1B93 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.180 H 278.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B93 |
|---|---|
| RGB | rgb(46, 27, 147) |
| HSL | hsl(250, 69%, 34%) |
| HSV | hsv(250, 82%, 58%) |
| CMYK | cmyk(68.7%, 81.6%, 0%, 42.4%) |
| CIE-LAB | lab(21.84, 44.30, -61.81) |
| CIE-LCH | lch(21.84, 76.05, 305.63°) |
| OKLab | oklab(34.6% 0.0265 -0.1785) |
| OKLCH | oklch(34.6% 0.18 278.5) |
| XYZ | xyz(6.7834, 3.4707, 27.9105) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.67
Cobalt Blue
#030AA7
ΔE00 4.02
Indigo Blue
#3A18B1
ΔE00 4.40
Royal Blue (survey)
#0504AA
ΔE00 4.46
Indigo (survey)
#380282
ΔE00 4.67
Ultramarine
#2000B1
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B93 #80931B
analogous
#1B4493 #2E1B93 #6A1B93
triadic
#2E1B93 #932E1B #1B932E
tetradic
#2E1B93 #931B44 #80931B #1B936A
square
#2E1B93 #931B44 #80931B #1B936A
split-complementary
#2E1B93 #936A1B #44931B
monochromatic
#0E082C #1E125F #2E1B93 #3E24C7 #624BDE
Accessibility & contrast
On white
12.40
#2E1B93 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2E1B93 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B93
12.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B93 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B93 | 1.00 | 12.40 | 1.69 | 12.40 |
| #FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2e1b93; /* rgb */ color: rgb(46, 27, 147); /* oklch */ color: oklch(34.6% 0.180 278.5);
Tailwind
colors: {
custom: {
50: '#775bb4',
500: '#2e1b93',
950: '#000000',
},
}SCSS
$custom: #2e1b93; $custom-light: #775bb4; $custom-dark: #000000;
JSON
{
"hex": "#2e1b93",
"rgb": {
"r": 46,
"g": 27,
"b": 147
},
"hsl": {
"h": 249.5,
"s": 68.966,
"l": 34.118
},
"oklch": {
"l": 0.34599,
"c": 0.18049,
"h": 278.5
},
"luminance": 0.03471
}Semantic roles & 50–950 ramp
primary
#2E1B93
secondary
#ADC04A
accent
#EC3CD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980