#1A42A7#1A42A7
#1A42A7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.169 H 264.0°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).
Color values
| HEX | #1A42A7 |
|---|---|
| RGB | rgb(26, 66, 167) |
| HSL | hsl(223, 73%, 38%) |
| HSV | hsv(223, 84%, 65%) |
| CMYK | cmyk(84.4%, 60.5%, 0%, 34.5%) |
| CIE-LAB | lab(31.59, 25.66, -58.01) |
| CIE-LCH | lch(31.59, 63.43, 293.86°) |
| OKLab | oklab(41.97% -0.0177 -0.1678) |
| OKLCH | oklch(41.97% 0.169 264) |
| XYZ | xyz(9.3468, 6.9049, 37.3919) |
| Luminance | 0.0691 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.37
Sapphire (survey)
#2138AB
ΔE00 3.69
Cobalt (survey)
#1E488F
ΔE00 4.53
Blue Blue
#2242C7
ΔE00 4.76
Sapphire
#0F52BA
ΔE00 5.69
Darkish Blue
#014182
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1A42A7 #A77F1A
analogous
#1A88A7 #1A42A7 #391AA7
triadic
#1A42A7 #A71A42 #42A71A
tetradic
#1A42A7 #A71A88 #A77F1A #1AA739
square
#1A42A7 #A71A88 #A77F1A #1AA739
split-complementary
#1A42A7 #A7391A #88A71A
monochromatic
#0A183D #122D72 #1A42A7 #2257DC #577FE5
Accessibility & contrast
On white
8.82
#1A42A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#1A42A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1A42A7
8.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1A42A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1A42A7 | 1.00 | 8.82 | 2.38 | 8.82 |
| #FFFFFF | 8.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1a42a7; /* rgb */ color: rgb(26, 66, 167); /* oklch */ color: oklch(42.0% 0.169 264.0);
Tailwind
colors: {
custom: {
50: '#7175c2',
500: '#1a42a7',
950: '#000000',
},
}SCSS
$custom: #1a42a7; $custom-light: #7175c2; $custom-dark: #000000;
JSON
{
"hex": "#1a42a7",
"rgb": {
"r": 26,
"g": 66,
"b": 167
},
"hsl": {
"h": 222.979,
"s": 73.057,
"l": 37.843
},
"oklch": {
"l": 0.41969,
"c": 0.16875,
"h": 264
},
"luminance": 0.06906
}Semantic roles & 50–950 ramp
primary
#1A42A7
secondary
#C8A755
accent
#BC38F0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81