#2E40AB#2E40AB
#2E40AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.171 H 270.1°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2E40AB |
|---|---|
| RGB | rgb(46, 64, 171) |
| HSL | hsl(231, 58%, 43%) |
| HSV | hsv(231, 73%, 67%) |
| CMYK | cmyk(73.1%, 62.6%, 0%, 32.9%) |
| CIE-LAB | lab(32.23, 30.56, -59.32) |
| CIE-LCH | lch(32.23, 66.73, 297.26°) |
| OKLab | oklab(42.78% 0.0002 -0.1713) |
| OKLCH | oklch(42.78% 0.171 270.1) |
| XYZ | xyz(10.3083, 7.1868, 39.3641) |
| Luminance | 0.0719 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.39
Blue Blue
#2242C7
ΔE00 3.71
Cobalt
#0047AB
ΔE00 4.64
Blueberry
#464196
ΔE00 4.81
Ocean Blue
#4F42B5
ΔE00 4.93
Blue (survey)
#0343DF
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E40AB #AB992E
analogous
#2E7FAB #2E40AB #5A2EAB
triadic
#2E40AB #AB2E40 #40AB2E
tetradic
#2E40AB #AB2E7F #AB992E #2EAB5A
square
#2E40AB #AB2E7F #AB992E #2EAB5A
split-complementary
#2E40AB #AB5A2E #7FAB2E
monochromatic
#141C4B #212E7B #2E40AB #485CCE #7987DB
Accessibility & contrast
On white
8.62
#2E40AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#2E40AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E40AB
8.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E40AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E40AB | 1.00 | 8.62 | 2.44 | 8.62 |
| #FFFFFF | 8.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2e40ab; /* rgb */ color: rgb(46, 64, 171); /* oklch */ color: oklch(42.8% 0.171 270.1);
Tailwind
colors: {
custom: {
50: '#7974c5',
500: '#2e40ab',
950: '#000000',
},
}SCSS
$custom: #2e40ab; $custom-light: #7974c5; $custom-dark: #000000;
JSON
{
"hex": "#2e40ab",
"rgb": {
"r": 46,
"g": 64,
"b": 171
},
"hsl": {
"h": 231.36,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.42777,
"c": 0.17134,
"h": 270.1
},
"luminance": 0.07188
}Semantic roles & 50–950 ramp
primary
#2E40AB
secondary
#C3B772
accent
#CB47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82