#1A40A7#1A40A7
#1A40A7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.171 H 264.5°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).
Color values
| HEX | #1A40A7 |
|---|---|
| RGB | rgb(26, 64, 167) |
| HSL | hsl(224, 73%, 38%) |
| HSV | hsv(224, 84%, 65%) |
| CMYK | cmyk(84.4%, 61.7%, 0%, 34.5%) |
| CIE-LAB | lab(31.06, 27.01, -58.88) |
| CIE-LCH | lch(31.06, 64.78, 294.64°) |
| OKLab | oklab(41.57% -0.0165 -0.1704) |
| OKLCH | oklch(41.57% 0.171 264.5) |
| XYZ | xyz(9.2320, 6.6753, 37.3536) |
| Luminance | 0.0668 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.99
Sapphire (survey)
#2138AB
ΔE00 3.03
Blue Blue
#2242C7
ΔE00 4.66
Cobalt (survey)
#1E488F
ΔE00 5.03
Blueberry
#464196
ΔE00 6.16
Sapphire
#0F52BA
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A40A7 #A7811A
analogous
#1A86A7 #1A40A7 #3B1AA7
triadic
#1A40A7 #A71A40 #40A71A
tetradic
#1A40A7 #A71A86 #A7811A #1AA73B
square
#1A40A7 #A71A86 #A7811A #1AA73B
split-complementary
#1A40A7 #A73B1A #86A71A
monochromatic
#0A173D #122C72 #1A40A7 #2254DC #577DE5
Accessibility & contrast
On white
8.99
#1A40A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#1A40A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A40A7
8.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A40A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A40A7 | 1.00 | 8.99 | 2.34 | 8.99 |
| #FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.99 | 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: #1a40a7; /* rgb */ color: rgb(26, 64, 167); /* oklch */ color: oklch(41.6% 0.171 264.5);
Tailwind
colors: {
custom: {
50: '#7174c2',
500: '#1a40a7',
950: '#000000',
},
}SCSS
$custom: #1a40a7; $custom-light: #7174c2; $custom-dark: #000000;
JSON
{
"hex": "#1a40a7",
"rgb": {
"r": 26,
"g": 64,
"b": 167
},
"hsl": {
"h": 223.83,
"s": 73.057,
"l": 37.843
},
"oklch": {
"l": 0.41571,
"c": 0.1712,
"h": 264.5
},
"luminance": 0.06676
}Semantic roles & 50–950 ramp
primary
#1A40A7
secondary
#C8A955
accent
#BE38F0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81