#1F4B8E#1F4B8E
#1F4B8E is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.1% C 0.121 H 258.8°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4B8E |
|---|---|
| RGB | rgb(31, 75, 142) |
| HSL | hsl(216, 64%, 34%) |
| HSV | hsv(216, 78%, 56%) |
| CMYK | cmyk(78.2%, 47.2%, 0%, 44.3%) |
| CIE-LAB | lab(32.43, 10.04, -41.49) |
| CIE-LCH | lch(32.43, 42.69, 283.61°) |
| OKLab | oklab(42.05% -0.0235 -0.119) |
| OKLCH | oklch(42.05% 0.121 258.8) |
| XYZ | xyz(7.9619, 7.2755, 26.5706) |
| Luminance | 0.0728 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.13
Dusk Blue
#26538D
ΔE00 2.75
Darkish Blue
#014182
ΔE00 3.59
Light Navy
#155084
ΔE00 3.71
Twilight Blue
#0A437A
ΔE00 3.81
Cobalt
#0047AB
ΔE00 4.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4B8E #8E621F
analogous
#1F838E #1F4B8E #2B1F8E
triadic
#1F4B8E #8E1F4B #4B8E1F
tetradic
#1F4B8E #8E1F83 #8E621F #1F8E2B
square
#1F4B8E #8E1F83 #8E621F #1F8E2B
split-complementary
#1F4B8E #8E2B1F #838E1F
monochromatic
#09162A #14305C #1F4B8E #2A66C0 #4F85D9
Accessibility & contrast
On white
8.55
#1F4B8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#1F4B8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4B8E
8.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4B8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4B8E | 1.00 | 8.55 | 2.46 | 8.55 |
| #FFFFFF | 8.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#0D488D
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #1f4b8e; /* rgb */ color: rgb(31, 75, 142); /* oklch */ color: oklch(42.1% 0.121 258.8);
Tailwind
colors: {
custom: {
50: '#6c7caf',
500: '#1f4b8e',
950: '#000000',
},
}SCSS
$custom: #1f4b8e; $custom-light: #6c7caf; $custom-dark: #000000;
JSON
{
"hex": "#1f4b8e",
"rgb": {
"r": 31,
"g": 75,
"b": 142
},
"hsl": {
"h": 216.216,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.42053,
"c": 0.12131,
"h": 258.8
},
"luminance": 0.07276
}Semantic roles & 50–950 ramp
primary
#1F4B8E
secondary
#BB904D
accent
#A541E7
background
#F6F7FA
surface
#ECEEF5
border
#C7C9CF
text
#080910
muted
#7A7B7F