#1E40A6#1E40A6
#1E40A6 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.169 H 265.3°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #1E40A6 |
|---|---|
| RGB | rgb(30, 64, 166) |
| HSL | hsl(225, 69%, 38%) |
| HSV | hsv(225, 82%, 65%) |
| CMYK | cmyk(81.9%, 61.4%, 0%, 34.9%) |
| CIE-LAB | lab(31.10, 26.96, -58.20) |
| CIE-LCH | lch(31.10, 64.14, 294.85°) |
| OKLab | oklab(41.62% -0.0138 -0.1683) |
| OKLCH | oklch(41.62% 0.169 265.3) |
| XYZ | xyz(9.2493, 6.6949, 36.8738) |
| Luminance | 0.0670 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.93
Cobalt
#0047AB
ΔE00 3.18
Blue Blue
#2242C7
ΔE00 4.68
Cobalt (survey)
#1E488F
ΔE00 5.07
Blueberry
#464196
ΔE00 5.87
Sapphire
#0F52BA
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1E40A6 #A6841E
analogous
#1E84A6 #1E40A6 #401EA6
triadic
#1E40A6 #A61E40 #40A61E
tetradic
#1E40A6 #A61E84 #A6841E #1EA640
square
#1E40A6 #A61E84 #A6841E #1EA640
split-complementary
#1E40A6 #A6401E #84A61E
monochromatic
#0B183E #152C72 #1E40A6 #2955D8 #5D7EE2
Accessibility & contrast
On white
8.98
#1E40A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#1E40A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1E40A6
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1E40A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1E40A6 | 1.00 | 8.98 | 2.34 | 8.98 |
| #FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1e40a6; /* rgb */ color: rgb(30, 64, 166); /* oklch */ color: oklch(41.6% 0.169 265.3);
Tailwind
colors: {
custom: {
50: '#7274c1',
500: '#1e40a6',
950: '#000000',
},
}SCSS
$custom: #1e40a6; $custom-light: #7274c1; $custom-dark: #000000;
JSON
{
"hex": "#1e40a6",
"rgb": {
"r": 30,
"g": 64,
"b": 166
},
"hsl": {
"h": 225,
"s": 69.388,
"l": 38.431
},
"oklch": {
"l": 0.41616,
"c": 0.16891,
"h": 265.3
},
"luminance": 0.06696
}Semantic roles & 50–950 ramp
primary
#1E40A6
secondary
#C6AB5A
accent
#C03CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81