#1F4A8F#1F4A8F
#1F4A8F is a dark, vivid blue. Relative luminance 0.072; OKLCH L 41.9% C 0.124 H 259.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4A8F |
|---|---|
| RGB | rgb(31, 74, 143) |
| HSL | hsl(217, 64%, 34%) |
| HSV | hsv(217, 78%, 56%) |
| CMYK | cmyk(78.3%, 48.3%, 0%, 43.9%) |
| CIE-LAB | lab(32.19, 11.12, -42.47) |
| CIE-LCH | lch(32.19, 43.91, 284.67°) |
| OKLab | oklab(41.9% -0.0225 -0.1219) |
| OKLCH | oklch(41.9% 0.124 259.6) |
| XYZ | xyz(7.9700, 7.1711, 26.9454) |
| Luminance | 0.0717 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 0.70
Dusk Blue
#26538D
ΔE00 3.16
Darkish Blue
#014182
ΔE00 3.48
Twilight Blue
#0A437A
ΔE00 3.86
Cobalt
#0047AB
ΔE00 3.91
Light Navy
#155084
ΔE00 4.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4A8F #8F641F
analogous
#1F828F #1F4A8F #2C1F8F
triadic
#1F4A8F #8F1F4A #4A8F1F
tetradic
#1F4A8F #8F1F82 #8F641F #1F8F2C
square
#1F4A8F #8F1F82 #8F641F #1F8F2C
split-complementary
#1F4A8F #8F2C1F #828F1F
monochromatic
#09162A #14305D #1F4A8F #2A64C1 #4F84D9
Accessibility & contrast
On white
8.63
#1F4A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#1F4A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4A8F
8.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4A8F | 1.00 | 8.63 | 2.43 | 8.63 |
| #FFFFFF | 8.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#245192
Deuteranopia (green-blind)
#04478E
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #1f4a8f; /* rgb */ color: rgb(31, 74, 143); /* oklch */ color: oklch(41.9% 0.124 259.6);
Tailwind
colors: {
custom: {
50: '#6c7bb0',
500: '#1f4a8f',
950: '#000000',
},
}SCSS
$custom: #1f4a8f; $custom-light: #6c7bb0; $custom-dark: #000000;
JSON
{
"hex": "#1f4a8f",
"rgb": {
"r": 31,
"g": 74,
"b": 143
},
"hsl": {
"h": 216.964,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.41896,
"c": 0.12398,
"h": 259.6
},
"luminance": 0.07172
}Semantic roles & 50–950 ramp
primary
#1F4A8F
secondary
#BC924E
accent
#A740E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F