#1F4C8D#1F4C8D
#1F4C8D is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.119 H 258.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4C8D |
|---|---|
| RGB | rgb(31, 76, 141) |
| HSL | hsl(215, 64%, 34%) |
| HSV | hsv(215, 78%, 55%) |
| CMYK | cmyk(78%, 46.1%, 0%, 44.7%) |
| CIE-LAB | lab(32.66, 8.97, -40.50) |
| CIE-LCH | lch(32.66, 41.48, 282.48°) |
| OKLab | oklab(42.21% -0.0246 -0.1161) |
| OKLCH | oklch(42.21% 0.119 258) |
| XYZ | xyz(7.9555, 7.3824, 26.1998) |
| Luminance | 0.0738 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.57
Dusk Blue
#26538D
ΔE00 2.36
Light Navy
#155084
ΔE00 3.30
Darkish Blue
#014182
ΔE00 3.75
Twilight Blue
#0A437A
ΔE00 3.82
Cobalt
#0047AB
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4C8D #8D601F
analogous
#1F838D #1F4C8D #291F8D
triadic
#1F4C8D #8D1F4C #4C8D1F
tetradic
#1F4C8D #8D1F83 #8D601F #1F8D29
square
#1F4C8D #8D1F83 #8D601F #1F8D29
split-complementary
#1F4C8D #8D291F #838D1F
monochromatic
#091629 #14315B #1F4C8D #2A67BF #4E87D8
Accessibility & contrast
On white
8.48
#1F4C8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#1F4C8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4C8D
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4C8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4C8D | 1.00 | 8.48 | 2.48 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A528F
Deuteranopia (green-blind)
#13488C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #1f4c8d; /* rgb */ color: rgb(31, 76, 141); /* oklch */ color: oklch(42.2% 0.119 258.0);
Tailwind
colors: {
custom: {
50: '#6c7daf',
500: '#1f4c8d',
950: '#000000',
},
}SCSS
$custom: #1f4c8d; $custom-light: #6c7daf; $custom-dark: #000000;
JSON
{
"hex": "#1f4c8d",
"rgb": {
"r": 31,
"g": 76,
"b": 141
},
"hsl": {
"h": 215.455,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.42214,
"c": 0.11866,
"h": 258
},
"luminance": 0.07383
}Semantic roles & 50–950 ramp
primary
#1F4C8D
secondary
#BB8E4D
accent
#A341E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F