#1F4FAE#1F4FAE
#1F4FAE is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.161 H 262.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4FAE |
|---|---|
| RGB | rgb(31, 79, 174) |
| HSL | hsl(220, 70%, 40%) |
| HSV | hsv(220, 82%, 68%) |
| CMYK | cmyk(82.2%, 54.6%, 0%, 31.8%) |
| CIE-LAB | lab(35.86, 20.10, -55.22) |
| CIE-LCH | lch(35.86, 58.76, 290.00°) |
| OKLab | oklab(45.41% -0.0223 -0.1593) |
| OKLCH | oklch(45.41% 0.161 262) |
| XYZ | xyz(10.9983, 8.9379, 41.1817) |
| Luminance | 0.0894 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.82
Cobalt
#0047AB
ΔE00 2.63
Cobalt (survey)
#1E488F
ΔE00 4.49
Dusk Blue
#26538D
ΔE00 4.74
Denim Blue
#3B5B92
ΔE00 5.55
Blue Blue
#2242C7
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4FAE #AE7E1F
analogous
#1F96AE #1F4FAE #361FAE
triadic
#1F4FAE #AE1F4F #4FAE1F
tetradic
#1F4FAE #AE1F96 #AE7E1F #1FAE36
square
#1F4FAE #AE1F96 #AE7E1F #1FAE36
split-complementary
#1F4FAE #AE361F #96AE1F
monochromatic
#0C2046 #16377A #1F4FAE #3069DA #648FE3
Accessibility & contrast
On white
7.53
#1F4FAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#1F4FAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4FAE
7.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4FAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4FAE | 1.00 | 7.53 | 2.79 | 7.53 |
| #FFFFFF | 7.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #1f4fae; /* rgb */ color: rgb(31, 79, 174); /* oklch */ color: oklch(45.4% 0.161 262.0);
Tailwind
colors: {
custom: {
50: '#747fc7',
500: '#1f4fae',
950: '#000000',
},
}SCSS
$custom: #1f4fae; $custom-light: #747fc7; $custom-dark: #000000;
JSON
{
"hex": "#1f4fae",
"rgb": {
"r": 31,
"g": 79,
"b": 174
},
"hsl": {
"h": 219.86,
"s": 69.756,
"l": 40.196
},
"oklch": {
"l": 0.45407,
"c": 0.16087,
"h": 262
},
"luminance": 0.08939
}Semantic roles & 50–950 ramp
primary
#1F4FAE
secondary
#C8A660
accent
#B13BED
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82