#1F4281#1F4281
#1F4281 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.0% C 0.114 H 261.1°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4281 |
|---|---|
| RGB | rgb(31, 66, 129) |
| HSL | hsl(219, 61%, 31%) |
| HSV | hsv(219, 76%, 51%) |
| CMYK | cmyk(76%, 48.8%, 0%, 49.4%) |
| CIE-LAB | lab(28.83, 10.97, -39.24) |
| CIE-LCH | lch(28.83, 40.74, 285.62°) |
| OKLab | oklab(39% -0.0177 -0.1126) |
| OKLCH | oklch(39% 0.114 261.1) |
| XYZ | xyz(6.4743, 5.7720, 21.5375) |
| Luminance | 0.0577 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 2.35
Cobalt (survey)
#1E488F
ΔE00 2.55
Twilight Blue
#0A437A
ΔE00 3.06
Prussian Blue
#004577
ΔE00 4.69
Marine Blue
#01386A
ΔE00 4.71
Cobalt
#0047AB
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4281 #815E1F
analogous
#1F7381 #1F4281 #2D1F81
triadic
#1F4281 #811F42 #42811F
tetradic
#1F4281 #811F73 #815E1F #1F812D
square
#1F4281 #811F73 #815E1F #1F812D
split-complementary
#1F4281 #812D1F #73811F
monochromatic
#07101E #132950 #1F4281 #2B5BB2 #4779D3
Accessibility & contrast
On white
9.75
#1F4281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#1F4281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4281
9.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4281 | 1.00 | 9.75 | 2.15 | 9.75 |
| #FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#204983
Deuteranopia (green-blind)
#064080
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f4281; /* rgb */ color: rgb(31, 66, 129); /* oklch */ color: oklch(39.0% 0.114 261.1);
Tailwind
colors: {
custom: {
50: '#6975a6',
500: '#1f4281',
950: '#000000',
},
}SCSS
$custom: #1f4281; $custom-light: #6975a6; $custom-dark: #000000;
JSON
{
"hex": "#1f4281",
"rgb": {
"r": 31,
"g": 66,
"b": 129
},
"hsl": {
"h": 218.571,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.39003,
"c": 0.11395,
"h": 261.1
},
"luminance": 0.05773
}Semantic roles & 50–950 ramp
primary
#1F4281
secondary
#B48D48
accent
#AB43E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F