#1F3F98#1F3F98
#1F3F98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.151 H 265.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F98 |
|---|---|
| RGB | rgb(31, 63, 152) |
| HSL | hsl(224, 66%, 36%) |
| HSV | hsv(224, 80%, 60%) |
| CMYK | cmyk(79.6%, 58.6%, 0%, 40.4%) |
| CIE-LAB | lab(29.69, 22.24, -52.02) |
| CIE-LCH | lch(29.69, 56.57, 293.15°) |
| OKLab | oklab(40.21% -0.0128 -0.1502) |
| OKLCH | oklch(40.21% 0.151 265.1) |
| XYZ | xyz(8.0081, 6.1124, 30.4574) |
| Luminance | 0.0611 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.82
Cobalt (survey)
#1E488F
ΔE00 3.99
Sapphire (survey)
#2138AB
ΔE00 4.15
Darkish Blue
#014182
ΔE00 5.16
Blueberry
#464196
ΔE00 5.79
Twilight Blue
#0A437A
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F98 #98781F
analogous
#1F7B98 #1F3F98 #3B1F98
triadic
#1F3F98 #981F3F #3F981F
tetradic
#1F3F98 #981F7B #98781F #1F983B
square
#1F3F98 #981F7B #98781F #1F983B
split-complementary
#1F3F98 #983B1F #7B981F
monochromatic
#0A1532 #152A65 #1F3F98 #2954CB #5579DC
Accessibility & contrast
On white
9.45
#1F3F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#1F3F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F98
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F98 | 1.00 | 9.45 | 2.22 | 9.45 |
| #FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3f98; /* rgb */ color: rgb(31, 63, 152); /* oklch */ color: oklch(40.2% 0.151 265.1);
Tailwind
colors: {
custom: {
50: '#6f73b7',
500: '#1f3f98',
950: '#000000',
},
}SCSS
$custom: #1f3f98; $custom-light: #6f73b7; $custom-dark: #000000;
JSON
{
"hex": "#1f3f98",
"rgb": {
"r": 31,
"g": 63,
"b": 152
},
"hsl": {
"h": 224.132,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.40208,
"c": 0.15076,
"h": 265.1
},
"luminance": 0.06113
}Semantic roles & 50–950 ramp
primary
#1F3F98
secondary
#C0A353
accent
#BC3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80