#1F3D98#1F3D98
#1F3D98 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.153 H 265.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3D98 |
|---|---|
| RGB | rgb(31, 61, 152) |
| HSL | hsl(225, 66%, 36%) |
| HSV | hsv(225, 80%, 60%) |
| CMYK | cmyk(79.6%, 59.9%, 0%, 40.4%) |
| CIE-LAB | lab(29.15, 23.61, -52.91) |
| CIE-LCH | lch(29.15, 57.94, 294.04°) |
| OKLab | oklab(39.8% -0.0114 -0.1529) |
| OKLCH | oklch(39.8% 0.153 265.7) |
| XYZ | xyz(7.8993, 5.8949, 30.4212) |
| Luminance | 0.0590 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.68
Cobalt
#0047AB
ΔE00 4.34
Cobalt (survey)
#1E488F
ΔE00 4.66
Darkish Blue
#014182
ΔE00 5.60
Blueberry
#464196
ΔE00 5.62
Blue Blue
#2242C7
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3D98 #987A1F
analogous
#1F7998 #1F3D98 #3D1F98
triadic
#1F3D98 #981F3D #3D981F
tetradic
#1F3D98 #981F79 #987A1F #1F983D
square
#1F3D98 #981F79 #987A1F #1F983D
split-complementary
#1F3D98 #983D1F #79981F
monochromatic
#0A1432 #152965 #1F3D98 #2951CB #5577DC
Accessibility & contrast
On white
9.64
#1F3D98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#1F3D98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3D98
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3D98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3D98 | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3d98; /* rgb */ color: rgb(31, 61, 152); /* oklch */ color: oklch(39.8% 0.153 265.7);
Tailwind
colors: {
custom: {
50: '#6f72b7',
500: '#1f3d98',
950: '#000000',
},
}SCSS
$custom: #1f3d98; $custom-light: #6f72b7; $custom-dark: #000000;
JSON
{
"hex": "#1f3d98",
"rgb": {
"r": 31,
"g": 61,
"b": 152
},
"hsl": {
"h": 225.124,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.39797,
"c": 0.1533,
"h": 265.7
},
"luminance": 0.05896
}Semantic roles & 50–950 ramp
primary
#1F3D98
secondary
#C0A553
accent
#BF3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80