#1D42A8#1D42A8
#1D42A8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.169 H 264.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #1D42A8 |
|---|---|
| RGB | rgb(29, 66, 168) |
| HSL | hsl(224, 71%, 39%) |
| HSV | hsv(224, 83%, 66%) |
| CMYK | cmyk(82.7%, 60.7%, 0%, 34.1%) |
| CIE-LAB | lab(31.77, 26.30, -58.31) |
| CIE-LCH | lch(31.77, 63.97, 294.28°) |
| OKLab | oklab(42.16% -0.0156 -0.1687) |
| OKLCH | oklch(42.16% 0.169 264.7) |
| XYZ | xyz(9.5203, 6.9836, 37.8844) |
| Luminance | 0.0698 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.57
Sapphire (survey)
#2138AB
ΔE00 3.50
Blue Blue
#2242C7
ΔE00 4.51
Cobalt (survey)
#1E488F
ΔE00 4.77
Sapphire
#0F52BA
ΔE00 5.74
Blueberry
#464196
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D42A8 #A8831D
analogous
#1D87A8 #1D42A8 #3D1DA8
triadic
#1D42A8 #A81D42 #42A81D
tetradic
#1D42A8 #A81D87 #A8831D #1DA83D
square
#1D42A8 #A81D87 #A8831D #1DA83D
split-complementary
#1D42A8 #A83D1D #87A81D
monochromatic
#0B1940 #142D74 #1D42A8 #2858DA #5C80E3
Accessibility & contrast
On white
8.76
#1D42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#1D42A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D42A8
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D42A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D42A8 | 1.00 | 8.76 | 2.40 | 8.76 |
| #FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #1d42a8; /* rgb */ color: rgb(29, 66, 168); /* oklch */ color: oklch(42.2% 0.169 264.7);
Tailwind
colors: {
custom: {
50: '#7275c3',
500: '#1d42a8',
950: '#000000',
},
}SCSS
$custom: #1d42a8; $custom-light: #7275c3; $custom-dark: #000000;
JSON
{
"hex": "#1d42a8",
"rgb": {
"r": 29,
"g": 66,
"b": 168
},
"hsl": {
"h": 224.029,
"s": 70.558,
"l": 38.627
},
"oklch": {
"l": 0.42157,
"c": 0.16938,
"h": 264.7
},
"luminance": 0.06985
}Semantic roles & 50–950 ramp
primary
#1D42A8
secondary
#C7AA5A
accent
#BE3AED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82