#1B408E#1B408E
#1B408E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.137 H 262.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #1B408E |
|---|---|
| RGB | rgb(27, 64, 142) |
| HSL | hsl(221, 68%, 33%) |
| HSV | hsv(221, 81%, 56%) |
| CMYK | cmyk(81%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(29.04, 17.11, -46.97) |
| CIE-LCH | lch(29.04, 49.99, 290.01°) |
| OKLab | oklab(39.42% -0.0173 -0.1354) |
| OKLCH | oklch(39.42% 0.137 262.7) |
| XYZ | xyz(7.1661, 5.8520, 26.3378) |
| Luminance | 0.0585 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.78
Darkish Blue
#014182
ΔE00 3.42
Cobalt
#0047AB
ΔE00 4.29
Twilight Blue
#0A437A
ΔE00 4.57
Marine Blue
#01386A
ΔE00 5.96
Sapphire (survey)
#2138AB
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B408E #8E691B
analogous
#1B798E #1B408E #301B8E
triadic
#1B408E #8E1B40 #408E1B
tetradic
#1B408E #8E1B79 #8E691B #1B8E30
square
#1B408E #8E1B79 #8E691B #1B8E30
split-complementary
#1B408E #8E301B #798E1B
monochromatic
#071227 #11295B #1B408E #2557C1 #4777DC
Accessibility & contrast
On white
9.67
#1B408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#1B408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B408E
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B408E | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#014A91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1b408e; /* rgb */ color: rgb(27, 64, 142); /* oklch */ color: oklch(39.4% 0.137 262.7);
Tailwind
colors: {
custom: {
50: '#6b74b0',
500: '#1b408e',
950: '#000000',
},
}SCSS
$custom: #1b408e; $custom-light: #6b74b0; $custom-dark: #000000;
JSON
{
"hex": "#1b408e",
"rgb": {
"r": 27,
"g": 64,
"b": 142
},
"hsl": {
"h": 220.696,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.39421,
"c": 0.13652,
"h": 262.7
},
"luminance": 0.05853
}Semantic roles & 50–950 ramp
primary
#1B408E
secondary
#BE9847
accent
#B33DEB
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080810
muted
#7A7B7F