#1F3D9B#1F3D9B
#1F3D9B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.157 H 265.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3D9B |
|---|---|
| RGB | rgb(31, 61, 155) |
| HSL | hsl(225, 67%, 36%) |
| HSV | hsv(225, 80%, 61%) |
| CMYK | cmyk(80%, 60.6%, 0%, 39.2%) |
| CIE-LAB | lab(29.40, 24.78, -54.33) |
| CIE-LCH | lch(29.40, 59.71, 294.52°) |
| OKLab | oklab(40.07% -0.0114 -0.157) |
| OKLCH | oklch(40.07% 0.157 265.9) |
| XYZ | xyz(8.1481, 5.9944, 31.7316) |
| Luminance | 0.0600 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.26
Cobalt
#0047AB
ΔE00 4.22
Cobalt (survey)
#1E488F
ΔE00 4.90
Blueberry
#464196
ΔE00 5.56
Darkish Blue
#014182
ΔE00 5.95
Blue Blue
#2242C7
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3D9B #9B7D1F
analogous
#1F7B9B #1F3D9B #3F1F9B
triadic
#1F3D9B #9B1F3D #3D9B1F
tetradic
#1F3D9B #9B1F7B #9B7D1F #1F9B3F
square
#1F3D9B #9B1F7B #9B7D1F #1F9B3F
split-complementary
#1F3D9B #9B3F1F #7B9B1F
monochromatic
#0B1535 #152968 #1F3D9B #2951CE #5778DD
Accessibility & contrast
On white
9.55
#1F3D9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#1F3D9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3D9B
9.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3D9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3D9B | 1.00 | 9.55 | 2.20 | 9.55 |
| #FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3d9b; /* rgb */ color: rgb(31, 61, 155); /* oklch */ color: oklch(40.1% 0.157 265.9);
Tailwind
colors: {
custom: {
50: '#7072b9',
500: '#1f3d9b',
950: '#000000',
},
}SCSS
$custom: #1f3d9b; $custom-light: #7072b9; $custom-dark: #000000;
JSON
{
"hex": "#1f3d9b",
"rgb": {
"r": 31,
"g": 61,
"b": 155
},
"hsl": {
"h": 225.484,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.40065,
"c": 0.15743,
"h": 265.9
},
"luminance": 0.05995
}Semantic roles & 50–950 ramp
primary
#1F3D9B
secondary
#C1A755
accent
#C03EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81