#1F4AA4#1F4AA4
#1F4AA4 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.5% C 0.153 H 262.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4AA4 |
|---|---|
| RGB | rgb(31, 74, 164) |
| HSL | hsl(221, 68%, 38%) |
| HSV | hsv(221, 81%, 64%) |
| CMYK | cmyk(81.1%, 54.9%, 0%, 35.7%) |
| CIE-LAB | lab(33.71, 19.50, -52.75) |
| CIE-LCH | lch(33.71, 56.24, 290.29°) |
| OKLab | oklab(43.53% -0.0197 -0.1522) |
| OKLCH | oklch(43.53% 0.153 262.6) |
| XYZ | xyz(9.7123, 7.8680, 36.1216) |
| Luminance | 0.0787 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 1.60
Cobalt (survey)
#1E488F
ΔE00 2.99
Sapphire
#0F52BA
ΔE00 3.71
Dusk Blue
#26538D
ΔE00 4.80
Darkish Blue
#014182
ΔE00 5.71
Blue Blue
#2242C7
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4AA4 #A4791F
analogous
#1F8CA4 #1F4AA4 #371FA4
triadic
#1F4AA4 #A41F4A #4AA41F
tetradic
#1F4AA4 #A41F8C #A4791F #1FA437
square
#1F4AA4 #A41F8C #A4791F #1FA437
split-complementary
#1F4AA4 #A4371F #8CA41F
monochromatic
#0C1C3D #153371 #1F4AA4 #2A62D7 #5D87E0
Accessibility & contrast
On white
8.16
#1F4AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#1F4AA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4AA4
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4AA4 | 1.00 | 8.16 | 2.57 | 8.16 |
| #FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #1f4aa4; /* rgb */ color: rgb(31, 74, 164); /* oklch */ color: oklch(43.5% 0.153 262.6);
Tailwind
colors: {
custom: {
50: '#717bc0',
500: '#1f4aa4',
950: '#000000',
},
}SCSS
$custom: #1f4aa4; $custom-light: #717bc0; $custom-dark: #000000;
JSON
{
"hex": "#1f4aa4",
"rgb": {
"r": 31,
"g": 74,
"b": 164
},
"hsl": {
"h": 220.602,
"s": 68.205,
"l": 38.235
},
"oklch": {
"l": 0.43532,
"c": 0.15344,
"h": 262.6
},
"luminance": 0.07869
}Semantic roles & 50–950 ramp
primary
#1F4AA4
secondary
#C5A25A
accent
#B33DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81