#1B40A8#1B40A8
#1B40A8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.172 H 264.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1B40A8 |
|---|---|
| RGB | rgb(27, 64, 168) |
| HSL | hsl(224, 72%, 38%) |
| HSV | hsv(224, 84%, 66%) |
| CMYK | cmyk(83.9%, 61.9%, 0%, 34.1%) |
| CIE-LAB | lab(31.17, 27.48, -59.28) |
| CIE-LCH | lch(31.17, 65.34, 294.87°) |
| OKLab | oklab(41.7% -0.0159 -0.1716) |
| OKLCH | oklch(41.7% 0.172 264.7) |
| XYZ | xyz(9.3508, 6.7258, 37.8436) |
| Luminance | 0.0673 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.92
Cobalt
#0047AB
ΔE00 3.07
Blue Blue
#2242C7
ΔE00 4.48
Cobalt (survey)
#1E488F
ΔE00 5.18
Blueberry
#464196
ΔE00 6.11
Sapphire
#0F52BA
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B40A8 #A8831B
analogous
#1B86A8 #1B40A8 #3C1BA8
triadic
#1B40A8 #A81B40 #40A81B
tetradic
#1B40A8 #A81B86 #A8831B #1BA83C
square
#1B40A8 #A81B86 #A8831B #1BA83C
split-complementary
#1B40A8 #A83C1B #86A81B
monochromatic
#0A183F #132C73 #1B40A8 #2454DC #597EE4
Accessibility & contrast
On white
8.95
#1B40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#1B40A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B40A8
8.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B40A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B40A8 | 1.00 | 8.95 | 2.35 | 8.95 |
| #FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1b40a8; /* rgb */ color: rgb(27, 64, 168); /* oklch */ color: oklch(41.7% 0.172 264.7);
Tailwind
colors: {
custom: {
50: '#7274c3',
500: '#1b40a8',
950: '#000000',
},
}SCSS
$custom: #1b40a8; $custom-light: #7274c3; $custom-dark: #000000;
JSON
{
"hex": "#1b40a8",
"rgb": {
"r": 27,
"g": 64,
"b": 168
},
"hsl": {
"h": 224.255,
"s": 72.308,
"l": 38.235
},
"oklch": {
"l": 0.41695,
"c": 0.17231,
"h": 264.7
},
"luminance": 0.06727
}Semantic roles & 50–950 ramp
primary
#1B40A8
secondary
#C8AA57
accent
#BF39EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82