#1F3A96#1F3A96
#1F3A96 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.154 H 266.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3A96 |
|---|---|
| RGB | rgb(31, 58, 150) |
| HSL | hsl(226, 66%, 35%) |
| HSV | hsv(226, 79%, 59%) |
| CMYK | cmyk(79.3%, 61.3%, 0%, 41.2%) |
| CIE-LAB | lab(28.16, 24.87, -53.29) |
| CIE-LCH | lch(28.16, 58.81, 295.02°) |
| OKLab | oklab(39.01% -0.0095 -0.154) |
| OKLCH | oklch(39.01% 0.154 266.5) |
| XYZ | xyz(7.5812, 5.5186, 29.5139) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.42
Cobalt
#0047AB
ΔE00 5.25
Cobalt (survey)
#1E488F
ΔE00 5.53
Blueberry
#464196
ΔE00 5.57
Darkish Blue
#014182
ΔE00 6.14
Darkslateblue
#483D8B
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3A96 #967B1F
analogous
#1F7596 #1F3A96 #401F96
triadic
#1F3A96 #961F3A #3A961F
tetradic
#1F3A96 #961F75 #967B1F #1F9640
square
#1F3A96 #961F75 #967B1F #1F9640
split-complementary
#1F3A96 #96401F #75961F
monochromatic
#0A1331 #152663 #1F3A96 #294EC9 #5473DC
Accessibility & contrast
On white
9.98
#1F3A96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#1F3A96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3A96
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3A96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3A96 | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #1f3a96; /* rgb */ color: rgb(31, 58, 150); /* oklch */ color: oklch(39.0% 0.154 266.5);
Tailwind
colors: {
custom: {
50: '#6f6fb6',
500: '#1f3a96',
950: '#000000',
},
}SCSS
$custom: #1f3a96; $custom-light: #6f6fb6; $custom-dark: #000000;
JSON
{
"hex": "#1f3a96",
"rgb": {
"r": 31,
"g": 58,
"b": 150
},
"hsl": {
"h": 226.387,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.39012,
"c": 0.15432,
"h": 266.5
},
"luminance": 0.05519
}Semantic roles & 50–950 ramp
primary
#1F3A96
secondary
#BFA652
accent
#C23FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80