#1F3A97#1F3A97
#1F3A97 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.156 H 266.5°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3A97 |
|---|---|
| RGB | rgb(31, 58, 151) |
| HSL | hsl(227, 66%, 36%) |
| HSV | hsv(227, 79%, 59%) |
| CMYK | cmyk(79.5%, 61.6%, 0%, 40.8%) |
| CIE-LAB | lab(28.25, 25.26, -53.76) |
| CIE-LCH | lch(28.25, 59.40, 295.17°) |
| OKLab | oklab(39.1% -0.0095 -0.1554) |
| OKLCH | oklch(39.1% 0.156 266.5) |
| XYZ | xyz(7.6621, 5.5509, 29.9398) |
| Luminance | 0.0555 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.27
Cobalt
#0047AB
ΔE00 5.21
Blueberry
#464196
ΔE00 5.55
Cobalt (survey)
#1E488F
ΔE00 5.60
Darkish Blue
#014182
ΔE00 6.24
Darkslateblue
#483D8B
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3A97 #977C1F
analogous
#1F7697 #1F3A97 #401F97
triadic
#1F3A97 #971F3A #3A971F
tetradic
#1F3A97 #971F76 #977C1F #1F9740
square
#1F3A97 #971F76 #977C1F #1F9740
split-complementary
#1F3A97 #97401F #76971F
monochromatic
#0A1331 #152664 #1F3A97 #294ECA #5473DC
Accessibility & contrast
On white
9.95
#1F3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#1F3A97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3A97
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3A97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3A97 | 1.00 | 9.95 | 2.11 | 9.95 |
| #FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f3a97; /* rgb */ color: rgb(31, 58, 151); /* oklch */ color: oklch(39.1% 0.156 266.5);
Tailwind
colors: {
custom: {
50: '#6f6fb6',
500: '#1f3a97',
950: '#000000',
},
}SCSS
$custom: #1f3a97; $custom-light: #6f6fb6; $custom-dark: #000000;
JSON
{
"hex": "#1f3a97",
"rgb": {
"r": 31,
"g": 58,
"b": 151
},
"hsl": {
"h": 226.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.39103,
"c": 0.1557,
"h": 266.5
},
"luminance": 0.05552
}Semantic roles & 50–950 ramp
primary
#1F3A97
secondary
#BFA752
accent
#C33FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80