#1E40A7#1E40A7
#1E40A7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.170 H 265.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1E40A7 |
|---|---|
| RGB | rgb(30, 64, 167) |
| HSL | hsl(225, 70%, 39%) |
| HSV | hsv(225, 82%, 65%) |
| CMYK | cmyk(82%, 61.7%, 0%, 34.5%) |
| CIE-LAB | lab(31.19, 27.35, -58.66) |
| CIE-LCH | lch(31.19, 64.72, 295.00°) |
| OKLab | oklab(41.71% -0.0138 -0.1697) |
| OKLCH | oklch(41.71% 0.17 265.4) |
| XYZ | xyz(9.3414, 6.7317, 37.3587) |
| Luminance | 0.0673 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.86
Cobalt
#0047AB
ΔE00 3.21
Blue Blue
#2242C7
ΔE00 4.54
Cobalt (survey)
#1E488F
ΔE00 5.19
Blueberry
#464196
ΔE00 5.89
Sapphire
#0F52BA
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1E40A7 #A7851E
analogous
#1E84A7 #1E40A7 #401EA7
triadic
#1E40A7 #A71E40 #40A71E
tetradic
#1E40A7 #A71E84 #A7851E #1EA740
square
#1E40A7 #A71E84 #A7851E #1EA740
split-complementary
#1E40A7 #A7401E #84A71E
monochromatic
#0B183F #152C73 #1E40A7 #2A55D9 #5D7EE2
Accessibility & contrast
On white
8.95
#1E40A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#1E40A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1E40A7
8.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1E40A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1E40A7 | 1.00 | 8.95 | 2.35 | 8.95 |
| #FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1e40a7; /* rgb */ color: rgb(30, 64, 167); /* oklch */ color: oklch(41.7% 0.170 265.4);
Tailwind
colors: {
custom: {
50: '#7374c2',
500: '#1e40a7',
950: '#000000',
},
}SCSS
$custom: #1e40a7; $custom-light: #7374c2; $custom-dark: #000000;
JSON
{
"hex": "#1e40a7",
"rgb": {
"r": 30,
"g": 64,
"b": 167
},
"hsl": {
"h": 225.109,
"s": 69.543,
"l": 38.627
},
"oklch": {
"l": 0.41707,
"c": 0.17025,
"h": 265.4
},
"luminance": 0.06733
}Semantic roles & 50–950 ramp
primary
#1E40A7
secondary
#C6AC5B
accent
#C03BEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81