#1F3E98#1F3E98
#1F3E98 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.152 H 265.4°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3E98 |
|---|---|
| RGB | rgb(31, 62, 152) |
| HSL | hsl(225, 66%, 36%) |
| HSV | hsv(225, 80%, 60%) |
| CMYK | cmyk(79.6%, 59.2%, 0%, 40.4%) |
| CIE-LAB | lab(29.42, 22.92, -52.47) |
| CIE-LCH | lch(29.42, 57.25, 293.60°) |
| OKLab | oklab(40% -0.0121 -0.1515) |
| OKLCH | oklch(40% 0.152 265.4) |
| XYZ | xyz(7.9532, 6.0026, 30.4391) |
| Luminance | 0.0600 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.91
Cobalt
#0047AB
ΔE00 4.07
Cobalt (survey)
#1E488F
ΔE00 4.32
Darkish Blue
#014182
ΔE00 5.38
Blueberry
#464196
ΔE00 5.70
Twilight Blue
#0A437A
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3E98 #98791F
analogous
#1F7A98 #1F3E98 #3C1F98
triadic
#1F3E98 #981F3E #3E981F
tetradic
#1F3E98 #981F7A #98791F #1F983C
square
#1F3E98 #981F7A #98791F #1F983C
split-complementary
#1F3E98 #983C1F #7A981F
monochromatic
#0A1532 #152965 #1F3E98 #2953CB #5578DC
Accessibility & contrast
On white
9.54
#1F3E98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#1F3E98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3E98
9.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3E98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3E98 | 1.00 | 9.54 | 2.20 | 9.54 |
| #FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3e98; /* rgb */ color: rgb(31, 62, 152); /* oklch */ color: oklch(40.0% 0.152 265.4);
Tailwind
colors: {
custom: {
50: '#6f72b7',
500: '#1f3e98',
950: '#000000',
},
}SCSS
$custom: #1f3e98; $custom-light: #6f72b7; $custom-dark: #000000;
JSON
{
"hex": "#1f3e98",
"rgb": {
"r": 31,
"g": 62,
"b": 152
},
"hsl": {
"h": 224.628,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.40002,
"c": 0.15202,
"h": 265.4
},
"luminance": 0.06004
}Semantic roles & 50–950 ramp
primary
#1F3E98
secondary
#C0A453
accent
#BD3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80