#2E2791#2E2791
#2E2791 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.166 H 276.9°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2E2791 |
|---|---|
| RGB | rgb(46, 39, 145) |
| HSL | hsl(244, 58%, 36%) |
| HSV | hsv(244, 73%, 57%) |
| CMYK | cmyk(68.3%, 73.1%, 0%, 43.1%) |
| CIE-LAB | lab(23.92, 37.13, -57.14) |
| CIE-LCH | lch(23.92, 68.14, 303.02°) |
| OKLab | oklab(36% 0.0201 -0.165) |
| OKLCH | oklch(36% 0.166 276.9) |
| XYZ | xyz(6.9614, 4.0756, 27.2024) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.18
Indigo Blue
#3A18B1
ΔE00 5.60
Sapphire (survey)
#2138AB
ΔE00 6.01
Midnight Blue
#191970
ΔE00 6.04
Cobalt Blue
#030AA7
ΔE00 6.12
Royal Blue (survey)
#0504AA
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E2791 #8A9127
analogous
#275591 #2E2791 #632791
triadic
#2E2791 #912E27 #27912E
tetradic
#2E2791 #912755 #8A9127 #279163
square
#2E2791 #912755 #8A9127 #279163
split-complementary
#2E2791 #916327 #559127
monochromatic
#0F0D31 #1F1A61 #2E2791 #3D34C1 #665FD4
Accessibility & contrast
On white
11.57
#2E2791 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2E2791 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E2791
11.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E2791 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E2791 | 1.00 | 11.57 | 1.82 | 11.57 |
| #FFFFFF | 11.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2e2791; /* rgb */ color: rgb(46, 39, 145); /* oklch */ color: oklch(36.0% 0.166 276.9);
Tailwind
colors: {
custom: {
50: '#7562b2',
500: '#2e2791',
950: '#000000',
},
}SCSS
$custom: #2e2791; $custom-light: #7562b2; $custom-dark: #000000;
JSON
{
"hex": "#2e2791",
"rgb": {
"r": 46,
"g": 39,
"b": 145
},
"hsl": {
"h": 243.962,
"s": 57.609,
"l": 36.078
},
"oklch": {
"l": 0.36001,
"c": 0.16625,
"h": 276.9
},
"luminance": 0.04076
}Semantic roles & 50–950 ramp
primary
#2E2791
secondary
#B3B95B
accent
#E147D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980