#1B408C#1B408C
#1B408C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.134 H 262.5°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #1B408C |
|---|---|
| RGB | rgb(27, 64, 140) |
| HSL | hsl(220, 68%, 33%) |
| HSV | hsv(220, 81%, 55%) |
| CMYK | cmyk(80.7%, 54.3%, 0%, 45.1%) |
| CIE-LAB | lab(28.88, 16.30, -45.98) |
| CIE-LCH | lch(28.88, 48.79, 289.51°) |
| OKLab | oklab(39.26% -0.0175 -0.1325) |
| OKLCH | oklch(39.26% 0.134 262.5) |
| XYZ | xyz(7.0173, 5.7924, 25.5541) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.72
Darkish Blue
#014182
ΔE00 3.19
Twilight Blue
#0A437A
ΔE00 4.33
Cobalt
#0047AB
ΔE00 4.51
Marine Blue
#01386A
ΔE00 5.70
Prussian Blue
#004577
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B408C #8C671B
analogous
#1B788C #1B408C #2E1B8C
triadic
#1B408C #8C1B40 #408C1B
tetradic
#1B408C #8C1B78 #8C671B #1B8C2E
square
#1B408C #8C1B78 #8C671B #1B8C2E
split-complementary
#1B408C #8C2E1B #788C1B
monochromatic
#071125 #112959 #1B408C #2557BF #4677DB
Accessibility & contrast
On white
9.73
#1B408C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#1B408C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B408C
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B408C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B408C | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#064A8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1b408c; /* rgb */ color: rgb(27, 64, 140); /* oklch */ color: oklch(39.3% 0.134 262.5);
Tailwind
colors: {
custom: {
50: '#6b74ae',
500: '#1b408c',
950: '#000000',
},
}SCSS
$custom: #1b408c; $custom-light: #6b74ae; $custom-dark: #000000;
JSON
{
"hex": "#1b408c",
"rgb": {
"r": 27,
"g": 64,
"b": 140
},
"hsl": {
"h": 220.354,
"s": 67.665,
"l": 32.745
},
"oklch": {
"l": 0.39256,
"c": 0.13367,
"h": 262.5
},
"luminance": 0.05793
}Semantic roles & 50–950 ramp
primary
#1B408C
secondary
#BD9646
accent
#B23DEB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F