#1B40A0#1B40A0
#1B40A0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.162 H 264.3°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).
Color values
| HEX | #1B40A0 |
|---|---|
| RGB | rgb(27, 64, 160) |
| HSL | hsl(223, 71%, 37%) |
| HSV | hsv(223, 83%, 63%) |
| CMYK | cmyk(83.1%, 60%, 0%, 37.3%) |
| CIE-LAB | lab(30.49, 24.33, -55.58) |
| CIE-LCH | lch(30.49, 60.68, 293.64°) |
| OKLab | oklab(40.97% -0.0161 -0.1607) |
| OKLCH | oklch(40.97% 0.162 264.3) |
| XYZ | xyz(8.6283, 6.4368, 34.0386) |
| Luminance | 0.0644 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.02
Sapphire (survey)
#2138AB
ΔE00 3.64
Cobalt (survey)
#1E488F
ΔE00 4.27
Blue Blue
#2242C7
ΔE00 5.65
Darkish Blue
#014182
ΔE00 5.70
Blueberry
#464196
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B40A0 #A07B1B
analogous
#1B83A0 #1B40A0 #381BA0
triadic
#1B40A0 #A01B40 #40A01B
tetradic
#1B40A0 #A01B83 #A07B1B #1BA038
square
#1B40A0 #A01B83 #A07B1B #1BA038
split-complementary
#1B40A0 #A0381B #83A01B
monochromatic
#091637 #122B6C #1B40A0 #2455D4 #537BE2
Accessibility & contrast
On white
9.18
#1B40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#1B40A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B40A0
9.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B40A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B40A0 | 1.00 | 9.18 | 2.29 | 9.18 |
| #FFFFFF | 9.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005969
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #1b40a0; /* rgb */ color: rgb(27, 64, 160); /* oklch */ color: oklch(41.0% 0.162 264.3);
Tailwind
colors: {
custom: {
50: '#7074bd',
500: '#1b40a0',
950: '#000000',
},
}SCSS
$custom: #1b40a0; $custom-light: #7074bd; $custom-dark: #000000;
JSON
{
"hex": "#1b40a0",
"rgb": {
"r": 27,
"g": 64,
"b": 160
},
"hsl": {
"h": 223.308,
"s": 71.123,
"l": 36.667
},
"oklch": {
"l": 0.40971,
"c": 0.16153,
"h": 264.3
},
"luminance": 0.06438
}Semantic roles & 50–950 ramp
primary
#1B40A0
secondary
#C5A552
accent
#BC3AEE
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81