#1F4AA8#1F4AA8
#1F4AA8 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.9% C 0.159 H 263.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4AA8 |
|---|---|
| RGB | rgb(31, 74, 168) |
| HSL | hsl(221, 69%, 39%) |
| HSV | hsv(221, 82%, 66%) |
| CMYK | cmyk(81.5%, 56%, 0%, 34.1%) |
| CIE-LAB | lab(34.01, 21.09, -54.65) |
| CIE-LCH | lch(34.01, 58.58, 291.10°) |
| OKLab | oklab(43.86% -0.0194 -0.1577) |
| OKLCH | oklch(43.86% 0.159 263) |
| XYZ | xyz(10.0792, 8.0148, 38.0540) |
| Luminance | 0.0802 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 1.48
Sapphire
#0F52BA
ΔE00 3.44
Cobalt (survey)
#1E488F
ΔE00 3.57
Dusk Blue
#26538D
ΔE00 5.21
Blue Blue
#2242C7
ΔE00 5.63
Sapphire (survey)
#2138AB
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4AA8 #A87D1F
analogous
#1F8FA8 #1F4AA8 #391FA8
triadic
#1F4AA8 #A81F4A #4AA81F
tetradic
#1F4AA8 #A81F8F #A87D1F #1FA839
square
#1F4AA8 #A81F8F #A87D1F #1FA839
split-complementary
#1F4AA8 #A8391F #8FA81F
monochromatic
#0C1C41 #153374 #1F4AA8 #2C62D8 #6089E2
Accessibility & contrast
On white
8.07
#1F4AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.60
#1F4AA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4AA8
8.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4AA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4AA8 | 1.00 | 8.07 | 2.60 | 8.07 |
| #FFFFFF | 8.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #1f4aa8; /* rgb */ color: rgb(31, 74, 168); /* oklch */ color: oklch(43.9% 0.159 263.0);
Tailwind
colors: {
custom: {
50: '#727bc3',
500: '#1f4aa8',
950: '#000000',
},
}SCSS
$custom: #1f4aa8; $custom-light: #727bc3; $custom-dark: #000000;
JSON
{
"hex": "#1f4aa8",
"rgb": {
"r": 31,
"g": 74,
"b": 168
},
"hsl": {
"h": 221.168,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.43861,
"c": 0.15893,
"h": 263
},
"luminance": 0.08016
}Semantic roles & 50–950 ramp
primary
#1F4AA8
secondary
#C6A55D
accent
#B53CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090912
muted
#7B7B81