#1F4AA1#1F4AA1
#1F4AA1 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.149 H 262.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4AA1 |
|---|---|
| RGB | rgb(31, 74, 161) |
| HSL | hsl(220, 68%, 38%) |
| HSV | hsv(220, 81%, 63%) |
| CMYK | cmyk(80.7%, 54%, 0%, 36.9%) |
| CIE-LAB | lab(33.48, 18.31, -51.32) |
| CIE-LCH | lch(33.48, 54.49, 289.64°) |
| OKLab | oklab(43.29% -0.02 -0.1479) |
| OKLCH | oklch(43.29% 0.149 262.3) |
| XYZ | xyz(9.4446, 7.7610, 34.7115) |
| Luminance | 0.0776 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 1.81
Cobalt (survey)
#1E488F
ΔE00 2.56
Sapphire
#0F52BA
ΔE00 3.95
Dusk Blue
#26538D
ΔE00 4.50
Darkish Blue
#014182
ΔE00 5.34
Light Navy
#155084
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4AA1 #A1761F
analogous
#1F8BA1 #1F4AA1 #351FA1
triadic
#1F4AA1 #A11F4A #4AA11F
tetradic
#1F4AA1 #A11F8B #A1761F #1FA135
square
#1F4AA1 #A11F8B #A1761F #1FA135
split-complementary
#1F4AA1 #A1351F #8BA11F
monochromatic
#0B1B3A #15326E #1F4AA1 #2962D4 #5B87DF
Accessibility & contrast
On white
8.23
#1F4AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#1F4AA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4AA1
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4AA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4AA1 | 1.00 | 8.23 | 2.55 | 8.23 |
| #FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0455A4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #1f4aa1; /* rgb */ color: rgb(31, 74, 161); /* oklch */ color: oklch(43.3% 0.149 262.3);
Tailwind
colors: {
custom: {
50: '#717bbd',
500: '#1f4aa1',
950: '#000000',
},
}SCSS
$custom: #1f4aa1; $custom-light: #717bbd; $custom-dark: #000000;
JSON
{
"hex": "#1f4aa1",
"rgb": {
"r": 31,
"g": 74,
"b": 161
},
"hsl": {
"h": 220.154,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.43289,
"c": 0.1493,
"h": 262.3
},
"luminance": 0.07762
}Semantic roles & 50–950 ramp
primary
#1F4AA1
secondary
#C4A058
accent
#B13DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81