#1F4CB2#1F4CB2
#1F4CB2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.170 H 263.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4CB2 |
|---|---|
| RGB | rgb(31, 76, 178) |
| HSL | hsl(222, 70%, 41%) |
| HSV | hsv(222, 83%, 70%) |
| CMYK | cmyk(82.6%, 57.3%, 0%, 30.2%) |
| CIE-LAB | lab(35.35, 23.68, -58.43) |
| CIE-LCH | lch(35.35, 63.04, 292.06°) |
| OKLab | oklab(45.11% -0.02 -0.1688) |
| OKLCH | oklch(45.11% 0.17 263.3) |
| XYZ | xyz(11.1825, 8.6732, 43.1956) |
| Luminance | 0.0867 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.20
Sapphire
#0F52BA
ΔE00 2.48
Blue Blue
#2242C7
ΔE00 4.86
Cobalt (survey)
#1E488F
ΔE00 4.91
Dusk Blue
#26538D
ΔE00 5.83
Sapphire (survey)
#2138AB
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4CB2 #B2851F
analogous
#1F95B2 #1F4CB2 #3C1FB2
triadic
#1F4CB2 #B21F4C #4CB21F
tetradic
#1F4CB2 #B21F95 #B2851F #1FB23C
square
#1F4CB2 #B21F95 #B2851F #1FB23C
split-complementary
#1F4CB2 #B23C1F #95B21F
monochromatic
#0D1F4A #16367E #1F4CB2 #3366DB #678DE5
Accessibility & contrast
On white
7.68
#1F4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#1F4CB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4CB2
7.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4CB2 | 1.00 | 7.68 | 2.73 | 7.68 |
| #FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #1f4cb2; /* rgb */ color: rgb(31, 76, 178); /* oklch */ color: oklch(45.1% 0.170 263.3);
Tailwind
colors: {
custom: {
50: '#757dca',
500: '#1f4cb2',
950: '#000000',
},
}SCSS
$custom: #1f4cb2; $custom-light: #757dca; $custom-dark: #000000;
JSON
{
"hex": "#1f4cb2",
"rgb": {
"r": 31,
"g": 76,
"b": 178
},
"hsl": {
"h": 221.633,
"s": 70.335,
"l": 40.98
},
"oklch": {
"l": 0.45114,
"c": 0.17,
"h": 263.3
},
"luminance": 0.08675
}Semantic roles & 50–950 ramp
primary
#1F4CB2
secondary
#CAAA63
accent
#B63BED
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82