#1F3F9B#1F3F9B
#1F3F9B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.155 H 265.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F9B |
|---|---|
| RGB | rgb(31, 63, 155) |
| HSL | hsl(225, 67%, 36%) |
| HSV | hsv(225, 80%, 61%) |
| CMYK | cmyk(80%, 59.4%, 0%, 39.2%) |
| CIE-LAB | lab(29.94, 23.42, -53.44) |
| CIE-LCH | lch(29.94, 58.35, 293.67°) |
| OKLab | oklab(40.47% -0.0127 -0.1544) |
| OKLCH | oklch(40.47% 0.155 265.3) |
| XYZ | xyz(8.2569, 6.2119, 31.7678) |
| Luminance | 0.0621 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.67
Sapphire (survey)
#2138AB
ΔE00 3.76
Cobalt (survey)
#1E488F
ΔE00 4.26
Darkish Blue
#014182
ΔE00 5.52
Blueberry
#464196
ΔE00 5.71
Blue Blue
#2242C7
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F9B #9B7B1F
analogous
#1F7D9B #1F3F9B #3D1F9B
triadic
#1F3F9B #9B1F3F #3F9B1F
tetradic
#1F3F9B #9B1F7D #9B7B1F #1F9B3D
square
#1F3F9B #9B1F7D #9B7B1F #1F9B3D
split-complementary
#1F3F9B #9B3D1F #7D9B1F
monochromatic
#0B1635 #152A68 #1F3F9B #2954CE #577ADD
Accessibility & contrast
On white
9.36
#1F3F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#1F3F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F9B
9.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F9B | 1.00 | 9.36 | 2.24 | 9.36 |
| #FFFFFF | 9.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f3f9b; /* rgb */ color: rgb(31, 63, 155); /* oklch */ color: oklch(40.5% 0.155 265.3);
Tailwind
colors: {
custom: {
50: '#7073b9',
500: '#1f3f9b',
950: '#000000',
},
}SCSS
$custom: #1f3f9b; $custom-light: #7073b9; $custom-dark: #000000;
JSON
{
"hex": "#1f3f9b",
"rgb": {
"r": 31,
"g": 63,
"b": 155
},
"hsl": {
"h": 224.516,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.4047,
"c": 0.15491,
"h": 265.3
},
"luminance": 0.06213
}Semantic roles & 50–950 ramp
primary
#1F3F9B
secondary
#C1A555
accent
#BD3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81