#1E40A8#1E40A8
#1E40A8 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.172 H 265.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #1E40A8 |
|---|---|
| RGB | rgb(30, 64, 168) |
| HSL | hsl(225, 70%, 39%) |
| HSV | hsv(225, 82%, 66%) |
| CMYK | cmyk(82.1%, 61.9%, 0%, 34.1%) |
| CIE-LAB | lab(31.27, 27.73, -59.11) |
| CIE-LCH | lch(31.27, 65.30, 295.13°) |
| OKLab | oklab(41.8% -0.0138 -0.171) |
| OKLCH | oklch(41.8% 0.172 265.4) |
| XYZ | xyz(9.4342, 6.7688, 37.8475) |
| Luminance | 0.0677 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.79
Cobalt
#0047AB
ΔE00 3.23
Blue Blue
#2242C7
ΔE00 4.39
Cobalt (survey)
#1E488F
ΔE00 5.31
Blueberry
#464196
ΔE00 5.91
Sapphire
#0F52BA
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1E40A8 #A8861E
analogous
#1E85A8 #1E40A8 #411EA8
triadic
#1E40A8 #A81E40 #40A81E
tetradic
#1E40A8 #A81E85 #A8861E #1EA841
square
#1E40A8 #A81E85 #A8861E #1EA841
split-complementary
#1E40A8 #A8411E #85A81E
monochromatic
#0B1840 #152C74 #1E40A8 #2A55D9 #5E7FE2
Accessibility & contrast
On white
8.92
#1E40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#1E40A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1E40A8
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1E40A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1E40A8 | 1.00 | 8.92 | 2.35 | 8.92 |
| #FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1e40a8; /* rgb */ color: rgb(30, 64, 168); /* oklch */ color: oklch(41.8% 0.172 265.4);
Tailwind
colors: {
custom: {
50: '#7374c3',
500: '#1e40a8',
950: '#000000',
},
}SCSS
$custom: #1e40a8; $custom-light: #7374c3; $custom-dark: #000000;
JSON
{
"hex": "#1e40a8",
"rgb": {
"r": 30,
"g": 64,
"b": 168
},
"hsl": {
"h": 225.217,
"s": 69.697,
"l": 38.824
},
"oklch": {
"l": 0.41798,
"c": 0.17159,
"h": 265.4
},
"luminance": 0.0677
}Semantic roles & 50–950 ramp
primary
#1E40A8
secondary
#C7AC5B
accent
#C13BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82