#1B40AD#1B40AD
#1B40AD is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.179 H 264.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #1B40AD |
|---|---|
| RGB | rgb(27, 64, 173) |
| HSL | hsl(225, 73%, 39%) |
| HSV | hsv(225, 84%, 68%) |
| CMYK | cmyk(84.4%, 63%, 0%, 32.2%) |
| CIE-LAB | lab(31.61, 29.43, -61.56) |
| CIE-LCH | lch(31.61, 68.23, 295.55°) |
| OKLab | oklab(42.16% -0.0158 -0.1782) |
| OKLCH | oklch(42.16% 0.179 264.9) |
| XYZ | xyz(9.8255, 6.9157, 40.3441) |
| Luminance | 0.0692 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.67
Cobalt
#0047AB
ΔE00 3.29
Blue Blue
#2242C7
ΔE00 3.77
Cobalt (survey)
#1E488F
ΔE00 5.77
Sapphire
#0F52BA
ΔE00 6.23
Blueberry
#464196
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B40AD #AD881B
analogous
#1B89AD #1B40AD #3F1BAD
triadic
#1B40AD #AD1B40 #40AD1B
tetradic
#1B40AD #AD1B89 #AD881B #1BAD3F
square
#1B40AD #AD1B89 #AD881B #1BAD3F
split-complementary
#1B40AD #AD3F1B #89AD1B
monochromatic
#0A1943 #132C78 #1B40AD #2856DD #5D7FE6
Accessibility & contrast
On white
8.81
#1B40AD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#1B40AD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B40AD
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B40AD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B40AD | 1.00 | 8.81 | 2.38 | 8.81 |
| #FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1b40ad; /* rgb */ color: rgb(27, 64, 173); /* oklch */ color: oklch(42.2% 0.179 264.9);
Tailwind
colors: {
custom: {
50: '#7374c6',
500: '#1b40ad',
950: '#000000',
},
}SCSS
$custom: #1b40ad; $custom-light: #7374c6; $custom-dark: #000000;
JSON
{
"hex": "#1b40ad",
"rgb": {
"r": 27,
"g": 64,
"b": 173
},
"hsl": {
"h": 224.795,
"s": 73,
"l": 39.216
},
"oklch": {
"l": 0.42158,
"c": 0.17893,
"h": 264.9
},
"luminance": 0.06917
}Semantic roles & 50–950 ramp
primary
#1B40AD
secondary
#CAAD5A
accent
#C138F0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82