#1B40A1#1B40A1
#1B40A1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.163 H 264.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).
Color values
| HEX | #1B40A1 |
|---|---|
| RGB | rgb(27, 64, 161) |
| HSL | hsl(223, 71%, 37%) |
| HSV | hsv(223, 83%, 63%) |
| CMYK | cmyk(83.2%, 60.2%, 0%, 36.9%) |
| CIE-LAB | lab(30.57, 24.73, -56.05) |
| CIE-LCH | lch(30.57, 61.26, 293.81°) |
| OKLab | oklab(41.06% -0.016 -0.1621) |
| OKLCH | oklch(41.06% 0.163 264.3) |
| XYZ | xyz(8.7161, 6.4720, 34.5011) |
| Luminance | 0.0647 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.01
Sapphire (survey)
#2138AB
ΔE00 3.53
Cobalt (survey)
#1E488F
ΔE00 4.38
Blue Blue
#2242C7
ΔE00 5.50
Darkish Blue
#014182
ΔE00 5.83
Blueberry
#464196
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B40A1 #A17C1B
analogous
#1B83A1 #1B40A1 #391BA1
triadic
#1B40A1 #A11B40 #40A11B
tetradic
#1B40A1 #A11B83 #A17C1B #1BA139
square
#1B40A1 #A11B83 #A17C1B #1BA139
split-complementary
#1B40A1 #A1391B #83A11B
monochromatic
#091638 #122B6D #1B40A1 #2455D5 #547BE2
Accessibility & contrast
On white
9.15
#1B40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#1B40A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B40A1
9.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B40A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B40A1 | 1.00 | 9.15 | 2.29 | 9.15 |
| #FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #1b40a1; /* rgb */ color: rgb(27, 64, 161); /* oklch */ color: oklch(41.1% 0.163 264.3);
Tailwind
colors: {
custom: {
50: '#7074be',
500: '#1b40a1',
950: '#000000',
},
}SCSS
$custom: #1b40a1; $custom-light: #7074be; $custom-dark: #000000;
JSON
{
"hex": "#1b40a1",
"rgb": {
"r": 27,
"g": 64,
"b": 161
},
"hsl": {
"h": 223.433,
"s": 71.277,
"l": 36.863
},
"oklch": {
"l": 0.4106,
"c": 0.16289,
"h": 264.3
},
"luminance": 0.06473
}Semantic roles & 50–950 ramp
primary
#1B40A1
secondary
#C5A652
accent
#BC3AEE
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81