#2E40AA#2E40AA
#2E40AA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.170 H 270.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2E40AA |
|---|---|
| RGB | rgb(46, 64, 170) |
| HSL | hsl(231, 57%, 42%) |
| HSV | hsv(231, 73%, 67%) |
| CMYK | cmyk(72.9%, 62.4%, 0%, 33.3%) |
| CIE-LAB | lab(32.14, 30.19, -58.86) |
| CIE-LCH | lch(32.14, 66.16, 297.16°) |
| OKLab | oklab(42.69% 0.0002 -0.17) |
| OKLCH | oklch(42.69% 0.17 270.1) |
| XYZ | xyz(10.2133, 7.1489, 38.8640) |
| Luminance | 0.0715 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.41
Blue Blue
#2242C7
ΔE00 3.85
Cobalt
#0047AB
ΔE00 4.60
Blueberry
#464196
ΔE00 4.73
Ocean Blue
#4F42B5
ΔE00 5.00
Cobalt (survey)
#1E488F
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E40AA #AA982E
analogous
#2E7EAA #2E40AA #5A2EAA
triadic
#2E40AA #AA2E40 #40AA2E
tetradic
#2E40AA #AA2E7E #AA982E #2EAA5A
square
#2E40AA #AA2E7E #AA982E #2EAA5A
split-complementary
#2E40AA #AA5A2E #7EAA2E
monochromatic
#141C4A #212E7A #2E40AA #485BCD #7886DA
Accessibility & contrast
On white
8.64
#2E40AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2E40AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E40AA
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E40AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E40AA | 1.00 | 8.64 | 2.43 | 8.64 |
| #FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2e40aa; /* rgb */ color: rgb(46, 64, 170); /* oklch */ color: oklch(42.7% 0.170 270.1);
Tailwind
colors: {
custom: {
50: '#7974c4',
500: '#2e40aa',
950: '#000000',
},
}SCSS
$custom: #2e40aa; $custom-light: #7974c4; $custom-dark: #000000;
JSON
{
"hex": "#2e40aa",
"rgb": {
"r": 46,
"g": 64,
"b": 170
},
"hsl": {
"h": 231.29,
"s": 57.407,
"l": 42.353
},
"oklch": {
"l": 0.42687,
"c": 0.17,
"h": 270.1
},
"luminance": 0.0715
}Semantic roles & 50–950 ramp
primary
#2E40AA
secondary
#C3B771
accent
#CA47E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82