#1F4AA6#1F4AA6
#1F4AA6 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.7% C 0.156 H 262.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4AA6 |
|---|---|
| RGB | rgb(31, 74, 166) |
| HSL | hsl(221, 69%, 39%) |
| HSV | hsv(221, 81%, 65%) |
| CMYK | cmyk(81.3%, 55.4%, 0%, 34.9%) |
| CIE-LAB | lab(33.86, 20.30, -53.70) |
| CIE-LCH | lch(33.86, 57.41, 290.70°) |
| OKLab | oklab(43.7% -0.0195 -0.155) |
| OKLCH | oklch(43.7% 0.156 262.8) |
| XYZ | xyz(9.8943, 7.9409, 37.0803) |
| Luminance | 0.0794 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 1.51
Cobalt (survey)
#1E488F
ΔE00 3.28
Sapphire
#0F52BA
ΔE00 3.57
Dusk Blue
#26538D
ΔE00 5.00
Blue Blue
#2242C7
ΔE00 5.90
Darkish Blue
#014182
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4AA6 #A67B1F
analogous
#1F8DA6 #1F4AA6 #371FA6
triadic
#1F4AA6 #A61F4A #4AA61F
tetradic
#1F4AA6 #A61F8D #A67B1F #1FA637
square
#1F4AA6 #A61F8D #A67B1F #1FA637
split-complementary
#1F4AA6 #A6371F #8DA61F
monochromatic
#0C1C3F #153372 #1F4AA6 #2B62D7 #5E88E1
Accessibility & contrast
On white
8.11
#1F4AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#1F4AA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4AA6
8.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4AA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4AA6 | 1.00 | 8.11 | 2.59 | 8.11 |
| #FFFFFF | 8.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #1f4aa6; /* rgb */ color: rgb(31, 74, 166); /* oklch */ color: oklch(43.7% 0.156 262.8);
Tailwind
colors: {
custom: {
50: '#727bc1',
500: '#1f4aa6',
950: '#000000',
},
}SCSS
$custom: #1f4aa6; $custom-light: #727bc1; $custom-dark: #000000;
JSON
{
"hex": "#1f4aa6",
"rgb": {
"r": 31,
"g": 74,
"b": 166
},
"hsl": {
"h": 220.889,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.43696,
"c": 0.1562,
"h": 262.8
},
"luminance": 0.07942
}Semantic roles & 50–950 ramp
primary
#1F4AA6
secondary
#C5A45B
accent
#B43CEB
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090912
muted
#7B7B81