#1F3C97#1F3C97
#1F3C97 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.153 H 266.0°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3C97 |
|---|---|
| RGB | rgb(31, 60, 151) |
| HSL | hsl(226, 66%, 36%) |
| HSV | hsv(226, 79%, 59%) |
| CMYK | cmyk(79.5%, 60.3%, 0%, 40.8%) |
| CIE-LAB | lab(28.79, 23.90, -52.88) |
| CIE-LCH | lch(28.79, 58.03, 294.32°) |
| OKLab | oklab(39.51% -0.0108 -0.1528) |
| OKLCH | oklch(39.51% 0.153 266) |
| XYZ | xyz(7.7649, 5.7565, 29.9740) |
| Luminance | 0.0576 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.61
Cobalt
#0047AB
ΔE00 4.65
Cobalt (survey)
#1E488F
ΔE00 4.92
Blueberry
#464196
ΔE00 5.59
Darkish Blue
#014182
ΔE00 5.73
Blue Blue
#2242C7
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3C97 #977A1F
analogous
#1F7897 #1F3C97 #3E1F97
triadic
#1F3C97 #971F3C #3C971F
tetradic
#1F3C97 #971F78 #977A1F #1F973E
square
#1F3C97 #971F78 #977A1F #1F973E
split-complementary
#1F3C97 #973E1F #78971F
monochromatic
#0A1431 #152864 #1F3C97 #2950CA #5475DC
Accessibility & contrast
On white
9.76
#1F3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#1F3C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3C97
9.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3C97 | 1.00 | 9.76 | 2.15 | 9.76 |
| #FFFFFF | 9.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f3c97; /* rgb */ color: rgb(31, 60, 151); /* oklch */ color: oklch(39.5% 0.153 266.0);
Tailwind
colors: {
custom: {
50: '#6f71b6',
500: '#1f3c97',
950: '#000000',
},
}SCSS
$custom: #1f3c97; $custom-light: #6f71b6; $custom-dark: #000000;
JSON
{
"hex": "#1f3c97",
"rgb": {
"r": 31,
"g": 60,
"b": 151
},
"hsl": {
"h": 225.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.39505,
"c": 0.15318,
"h": 266
},
"luminance": 0.05757
}Semantic roles & 50–950 ramp
primary
#1F3C97
secondary
#BFA552
accent
#C03FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80