#1F3F97#1F3F97
#1F3F97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.149 H 265.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F97 |
|---|---|
| RGB | rgb(31, 63, 151) |
| HSL | hsl(224, 66%, 36%) |
| HSV | hsv(224, 79%, 59%) |
| CMYK | cmyk(79.5%, 58.3%, 0%, 40.8%) |
| CIE-LAB | lab(29.61, 21.84, -51.54) |
| CIE-LCH | lch(29.61, 55.98, 292.97°) |
| OKLab | oklab(40.12% -0.0129 -0.1488) |
| OKLCH | oklch(40.12% 0.149 265.1) |
| XYZ | xyz(7.9265, 6.0798, 30.0279) |
| Luminance | 0.0608 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.87
Cobalt (survey)
#1E488F
ΔE00 3.90
Sapphire (survey)
#2138AB
ΔE00 4.29
Darkish Blue
#014182
ΔE00 5.04
Blueberry
#464196
ΔE00 5.83
Twilight Blue
#0A437A
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F97 #97771F
analogous
#1F7B97 #1F3F97 #3B1F97
triadic
#1F3F97 #971F3F #3F971F
tetradic
#1F3F97 #971F7B #97771F #1F973B
square
#1F3F97 #971F7B #97771F #1F973B
split-complementary
#1F3F97 #973B1F #7B971F
monochromatic
#0A1531 #152A64 #1F3F97 #2954CA #5479DC
Accessibility & contrast
On white
9.48
#1F3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#1F3F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F97
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F97 | 1.00 | 9.48 | 2.22 | 9.48 |
| #FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3f97; /* rgb */ color: rgb(31, 63, 151); /* oklch */ color: oklch(40.1% 0.149 265.1);
Tailwind
colors: {
custom: {
50: '#6f73b6',
500: '#1f3f97',
950: '#000000',
},
}SCSS
$custom: #1f3f97; $custom-light: #6f73b6; $custom-dark: #000000;
JSON
{
"hex": "#1f3f97",
"rgb": {
"r": 31,
"g": 63,
"b": 151
},
"hsl": {
"h": 224,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.40122,
"c": 0.14937,
"h": 265.1
},
"luminance": 0.06081
}Semantic roles & 50–950 ramp
primary
#1F3F97
secondary
#BFA252
accent
#BC3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80