#1F3D99#1F3D99
#1F3D99 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.155 H 265.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3D99 |
|---|---|
| RGB | rgb(31, 61, 153) |
| HSL | hsl(225, 66%, 36%) |
| HSV | hsv(225, 80%, 60%) |
| CMYK | cmyk(79.7%, 60.1%, 0%, 40%) |
| CIE-LAB | lab(29.23, 24.00, -53.38) |
| CIE-LCH | lch(29.23, 58.53, 294.21°) |
| OKLab | oklab(39.89% -0.0114 -0.1543) |
| OKLCH | oklch(39.89% 0.155 265.8) |
| XYZ | xyz(7.9816, 5.9278, 30.8543) |
| Luminance | 0.0593 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.53
Cobalt
#0047AB
ΔE00 4.29
Cobalt (survey)
#1E488F
ΔE00 4.74
Blueberry
#464196
ΔE00 5.60
Darkish Blue
#014182
ΔE00 5.72
Blue Blue
#2242C7
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3D99 #997B1F
analogous
#1F7A99 #1F3D99 #3E1F99
triadic
#1F3D99 #991F3D #3D991F
tetradic
#1F3D99 #991F7A #997B1F #1F993E
square
#1F3D99 #991F7A #997B1F #1F993E
split-complementary
#1F3D99 #993E1F #7A991F
monochromatic
#0A1433 #152966 #1F3D99 #2951CC #5677DD
Accessibility & contrast
On white
9.61
#1F3D99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#1F3D99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3D99
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3D99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3D99 | 1.00 | 9.61 | 2.19 | 9.61 |
| #FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3d99; /* rgb */ color: rgb(31, 61, 153); /* oklch */ color: oklch(39.9% 0.155 265.8);
Tailwind
colors: {
custom: {
50: '#6f72b8',
500: '#1f3d99',
950: '#000000',
},
}SCSS
$custom: #1f3d99; $custom-light: #6f72b8; $custom-dark: #000000;
JSON
{
"hex": "#1f3d99",
"rgb": {
"r": 31,
"g": 61,
"b": 153
},
"hsl": {
"h": 225.246,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.39886,
"c": 0.15468,
"h": 265.8
},
"luminance": 0.05929
}Semantic roles & 50–950 ramp
primary
#1F3D99
secondary
#C0A654
accent
#BF3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80