#1F4C98#1F4C98
#1F4C98 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.134 H 260.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4C98 |
|---|---|
| RGB | rgb(31, 76, 152) |
| HSL | hsl(218, 66%, 36%) |
| HSV | hsv(218, 80%, 60%) |
| CMYK | cmyk(79.6%, 50%, 0%, 40.4%) |
| CIE-LAB | lab(33.41, 13.37, -46.00) |
| CIE-LCH | lch(33.41, 47.90, 286.20°) |
| OKLab | oklab(43.03% -0.0227 -0.1323) |
| OKLCH | oklch(43.03% 0.134 260.3) |
| XYZ | xyz(8.8150, 7.7262, 30.7264) |
| Luminance | 0.0773 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.64
Dusk Blue
#26538D
ΔE00 3.03
Cobalt
#0047AB
ΔE00 3.12
Light Navy
#155084
ΔE00 4.44
Sapphire
#0F52BA
ΔE00 4.53
Darkish Blue
#014182
ΔE00 4.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4C98 #986B1F
analogous
#1F8898 #1F4C98 #2E1F98
triadic
#1F4C98 #981F4C #4C981F
tetradic
#1F4C98 #981F88 #986B1F #1F982E
square
#1F4C98 #981F88 #986B1F #1F982E
split-complementary
#1F4C98 #982E1F #88981F
monochromatic
#0A1932 #153365 #1F4C98 #2965CB #5587DC
Accessibility & contrast
On white
8.25
#1F4C98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#1F4C98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4C98
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4C98 | 1.00 | 8.25 | 2.55 | 8.25 |
| #FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F549B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #1f4c98; /* rgb */ color: rgb(31, 76, 152); /* oklch */ color: oklch(43.0% 0.134 260.3);
Tailwind
colors: {
custom: {
50: '#6e7db7',
500: '#1f4c98',
950: '#000000',
},
}SCSS
$custom: #1f4c98; $custom-light: #6e7db7; $custom-dark: #000000;
JSON
{
"hex": "#1f4c98",
"rgb": {
"r": 31,
"g": 76,
"b": 152
},
"hsl": {
"h": 217.686,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.43025,
"c": 0.1342,
"h": 260.3
},
"luminance": 0.07727
}Semantic roles & 50–950 ramp
primary
#1F4C98
secondary
#C09753
accent
#AA3FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80