#1F4BAD#1F4BAD
#1F4BAD is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.164 H 263.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4BAD |
|---|---|
| RGB | rgb(31, 75, 173) |
| HSL | hsl(221, 70%, 40%) |
| HSV | hsv(221, 82%, 68%) |
| CMYK | cmyk(82.1%, 56.6%, 0%, 32.2%) |
| CIE-LAB | lab(34.68, 22.39, -56.55) |
| CIE-LCH | lch(34.68, 60.82, 291.60°) |
| OKLab | oklab(44.49% -0.0197 -0.1633) |
| OKLCH | oklch(44.49% 0.164 263.1) |
| XYZ | xyz(10.6213, 8.3393, 40.5769) |
| Luminance | 0.0834 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 1.73
Sapphire
#0F52BA
ΔE00 2.92
Cobalt (survey)
#1E488F
ΔE00 4.24
Blue Blue
#2242C7
ΔE00 5.21
Dusk Blue
#26538D
ΔE00 5.49
Sapphire (survey)
#2138AB
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4BAD #AD811F
analogous
#1F92AD #1F4BAD #3A1FAD
triadic
#1F4BAD #AD1F4B #4BAD1F
tetradic
#1F4BAD #AD1F92 #AD811F #1FAD3A
square
#1F4BAD #AD1F92 #AD811F #1FAD3A
split-complementary
#1F4BAD #AD3A1F #92AD1F
monochromatic
#0C1E45 #163579 #1F4BAD #2F64DA #638BE3
Accessibility & contrast
On white
7.87
#1F4BAD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#1F4BAD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4BAD
7.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4BAD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4BAD | 1.00 | 7.87 | 2.67 | 7.87 |
| #FFFFFF | 7.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058B0
Deuteranopia (green-blind)
#004BAB
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #1f4bad; /* rgb */ color: rgb(31, 75, 173); /* oklch */ color: oklch(44.5% 0.164 263.1);
Tailwind
colors: {
custom: {
50: '#747cc6',
500: '#1f4bad',
950: '#000000',
},
}SCSS
$custom: #1f4bad; $custom-light: #747cc6; $custom-dark: #000000;
JSON
{
"hex": "#1f4bad",
"rgb": {
"r": 31,
"g": 75,
"b": 173
},
"hsl": {
"h": 221.408,
"s": 69.608,
"l": 40
},
"oklch": {
"l": 0.44487,
"c": 0.16449,
"h": 263.1
},
"luminance": 0.08341
}Semantic roles & 50–950 ramp
primary
#1F4BAD
secondary
#C8A860
accent
#B63BEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82