#1B40AA#1B40AA
#1B40AA is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.175 H 264.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #1B40AA |
|---|---|
| RGB | rgb(27, 64, 170) |
| HSL | hsl(224, 73%, 39%) |
| HSV | hsv(224, 84%, 67%) |
| CMYK | cmyk(84.1%, 62.4%, 0%, 33.3%) |
| CIE-LAB | lab(31.35, 28.26, -60.20) |
| CIE-LCH | lch(31.35, 66.50, 295.15°) |
| OKLab | oklab(41.88% -0.0158 -0.1742) |
| OKLCH | oklch(41.88% 0.175 264.8) |
| XYZ | xyz(9.5385, 6.8009, 38.8324) |
| Luminance | 0.0680 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.80
Cobalt
#0047AB
ΔE00 3.14
Blue Blue
#2242C7
ΔE00 4.19
Cobalt (survey)
#1E488F
ΔE00 5.42
Blueberry
#464196
ΔE00 6.16
Sapphire
#0F52BA
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B40AA #AA851B
analogous
#1B87AA #1B40AA #3E1BAA
triadic
#1B40AA #AA1B40 #40AA1B
tetradic
#1B40AA #AA1B87 #AA851B #1BAA3E
square
#1B40AA #AA1B87 #AA851B #1BAA3E
split-complementary
#1B40AA #AA3E1B #87AA1B
monochromatic
#0A1840 #132C75 #1B40AA #2655DC #5B7EE5
Accessibility & contrast
On white
8.90
#1B40AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#1B40AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B40AA
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B40AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B40AA | 1.00 | 8.90 | 2.36 | 8.90 |
| #FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1b40aa; /* rgb */ color: rgb(27, 64, 170); /* oklch */ color: oklch(41.9% 0.175 264.8);
Tailwind
colors: {
custom: {
50: '#7374c4',
500: '#1b40aa',
950: '#000000',
},
}SCSS
$custom: #1b40aa; $custom-light: #7374c4; $custom-dark: #000000;
JSON
{
"hex": "#1b40aa",
"rgb": {
"r": 27,
"g": 64,
"b": 170
},
"hsl": {
"h": 224.476,
"s": 72.589,
"l": 38.627
},
"oklch": {
"l": 0.41879,
"c": 0.17497,
"h": 264.8
},
"luminance": 0.06802
}Semantic roles & 50–950 ramp
primary
#1B40AA
secondary
#C9AC58
accent
#C039EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82