#1F3D9A#1F3D9A
#1F3D9A is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.156 H 265.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3D9A |
|---|---|
| RGB | rgb(31, 61, 154) |
| HSL | hsl(225, 66%, 36%) |
| HSV | hsv(225, 80%, 60%) |
| CMYK | cmyk(79.9%, 60.4%, 0%, 39.6%) |
| CIE-LAB | lab(29.31, 24.39, -53.86) |
| CIE-LCH | lch(29.31, 59.12, 294.37°) |
| OKLab | oklab(39.98% -0.0114 -0.1556) |
| OKLCH | oklch(39.98% 0.156 265.8) |
| XYZ | xyz(8.0645, 5.9610, 31.2911) |
| Luminance | 0.0596 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.39
Cobalt
#0047AB
ΔE00 4.26
Cobalt (survey)
#1E488F
ΔE00 4.82
Blueberry
#464196
ΔE00 5.58
Darkish Blue
#014182
ΔE00 5.83
Blue Blue
#2242C7
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3D9A #9A7C1F
analogous
#1F7B9A #1F3D9A #3F1F9A
triadic
#1F3D9A #9A1F3D #3D9A1F
tetradic
#1F3D9A #9A1F7B #9A7C1F #1F9A3F
square
#1F3D9A #9A1F7B #9A7C1F #1F9A3F
split-complementary
#1F3D9A #9A3F1F #7B9A1F
monochromatic
#0A1534 #152967 #1F3D9A #2951CD #5677DD
Accessibility & contrast
On white
9.58
#1F3D9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#1F3D9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3D9A
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3D9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3D9A | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3d9a; /* rgb */ color: rgb(31, 61, 154); /* oklch */ color: oklch(40.0% 0.156 265.8);
Tailwind
colors: {
custom: {
50: '#7072b9',
500: '#1f3d9a',
950: '#000000',
},
}SCSS
$custom: #1f3d9a; $custom-light: #7072b9; $custom-dark: #000000;
JSON
{
"hex": "#1f3d9a",
"rgb": {
"r": 31,
"g": 61,
"b": 154
},
"hsl": {
"h": 225.366,
"s": 66.486,
"l": 36.275
},
"oklch": {
"l": 0.39975,
"c": 0.15606,
"h": 265.8
},
"luminance": 0.05962
}Semantic roles & 50–950 ramp
primary
#1F3D9A
secondary
#C1A654
accent
#C03EE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80