#1B40A7#1B40A7
#1B40A7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.171 H 264.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #1B40A7 |
|---|---|
| RGB | rgb(27, 64, 167) |
| HSL | hsl(224, 72%, 38%) |
| HSV | hsv(224, 84%, 65%) |
| CMYK | cmyk(83.8%, 61.7%, 0%, 34.5%) |
| CIE-LAB | lab(31.09, 27.09, -58.82) |
| CIE-LCH | lch(31.09, 64.76, 294.73°) |
| OKLab | oklab(41.6% -0.0159 -0.1702) |
| OKLCH | oklch(41.6% 0.171 264.7) |
| XYZ | xyz(9.2580, 6.6887, 37.3548) |
| Luminance | 0.0669 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.99
Cobalt
#0047AB
ΔE00 3.04
Blue Blue
#2242C7
ΔE00 4.63
Cobalt (survey)
#1E488F
ΔE00 5.07
Blueberry
#464196
ΔE00 6.10
Sapphire
#0F52BA
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B40A7 #A7821B
analogous
#1B86A7 #1B40A7 #3C1BA7
triadic
#1B40A7 #A71B40 #40A71B
tetradic
#1B40A7 #A71B86 #A7821B #1BA73C
square
#1B40A7 #A71B86 #A7821B #1BA73C
split-complementary
#1B40A7 #A73C1B #86A71B
monochromatic
#0A183E #122C72 #1B40A7 #2454DC #587DE4
Accessibility & contrast
On white
8.98
#1B40A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#1B40A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B40A7
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B40A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B40A7 | 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)
#0050AA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1b40a7; /* rgb */ color: rgb(27, 64, 167); /* oklch */ color: oklch(41.6% 0.171 264.7);
Tailwind
colors: {
custom: {
50: '#7274c2',
500: '#1b40a7',
950: '#000000',
},
}SCSS
$custom: #1b40a7; $custom-light: #7274c2; $custom-dark: #000000;
JSON
{
"hex": "#1b40a7",
"rgb": {
"r": 27,
"g": 64,
"b": 167
},
"hsl": {
"h": 224.143,
"s": 72.165,
"l": 38.039
},
"oklch": {
"l": 0.41603,
"c": 0.17097,
"h": 264.7
},
"luminance": 0.0669
}Semantic roles & 50–950 ramp
primary
#1B40A7
secondary
#C8AA56
accent
#BF39EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81