#1F4D9A#1F4D9A
#1F4D9A is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.4% C 0.136 H 260.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4D9A |
|---|---|
| RGB | rgb(31, 77, 154) |
| HSL | hsl(218, 66%, 36%) |
| HSV | hsv(218, 80%, 60%) |
| CMYK | cmyk(79.9%, 50%, 0%, 39.6%) |
| CIE-LAB | lab(33.84, 13.49, -46.51) |
| CIE-LCH | lch(33.84, 48.43, 286.18°) |
| OKLab | oklab(43.4% -0.0232 -0.1338) |
| OKLCH | oklch(43.4% 0.136 260.2) |
| XYZ | xyz(9.0496, 7.9311, 31.6195) |
| Luminance | 0.0793 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.03
Dusk Blue
#26538D
ΔE00 2.89
Cobalt
#0047AB
ΔE00 3.11
Sapphire
#0F52BA
ΔE00 4.19
Light Navy
#155084
ΔE00 4.42
Darkish Blue
#014182
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4D9A #9A6C1F
analogous
#1F8B9A #1F4D9A #2F1F9A
triadic
#1F4D9A #9A1F4D #4D9A1F
tetradic
#1F4D9A #9A1F8B #9A6C1F #1F9A2F
square
#1F4D9A #9A1F8B #9A6C1F #1F9A2F
split-complementary
#1F4D9A #9A2F1F #8B9A1F
monochromatic
#0A1A34 #153467 #1F4D9A #2966CD #5689DD
Accessibility & contrast
On white
8.12
#1F4D9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#1F4D9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4D9A
8.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4D9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4D9A | 1.00 | 8.12 | 2.59 | 8.12 |
| #FFFFFF | 8.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F569D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #1f4d9a; /* rgb */ color: rgb(31, 77, 154); /* oklch */ color: oklch(43.4% 0.136 260.2);
Tailwind
colors: {
custom: {
50: '#6f7eb8',
500: '#1f4d9a',
950: '#000000',
},
}SCSS
$custom: #1f4d9a; $custom-light: #6f7eb8; $custom-dark: #000000;
JSON
{
"hex": "#1f4d9a",
"rgb": {
"r": 31,
"g": 77,
"b": 154
},
"hsl": {
"h": 217.561,
"s": 66.486,
"l": 36.275
},
"oklch": {
"l": 0.43402,
"c": 0.13576,
"h": 260.2
},
"luminance": 0.07932
}Semantic roles & 50–950 ramp
primary
#1F4D9A
secondary
#C19854
accent
#A93EE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80