#1F3A98#1F3A98
#1F3A98 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.157 H 266.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3A98 |
|---|---|
| RGB | rgb(31, 58, 152) |
| HSL | hsl(227, 66%, 36%) |
| HSV | hsv(227, 80%, 60%) |
| CMYK | cmyk(79.6%, 61.8%, 0%, 40.4%) |
| CIE-LAB | lab(28.34, 25.65, -54.23) |
| CIE-LCH | lch(28.34, 59.99, 295.31°) |
| OKLab | oklab(39.19% -0.0095 -0.1568) |
| OKLCH | oklch(39.19% 0.157 266.5) |
| XYZ | xyz(7.7436, 5.5835, 30.3693) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.11
Cobalt
#0047AB
ΔE00 5.17
Blueberry
#464196
ΔE00 5.53
Cobalt (survey)
#1E488F
ΔE00 5.66
Darkish Blue
#014182
ΔE00 6.34
Darkslateblue
#483D8B
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3A98 #987D1F
analogous
#1F7698 #1F3A98 #411F98
triadic
#1F3A98 #981F3A #3A981F
tetradic
#1F3A98 #981F76 #987D1F #1F9841
square
#1F3A98 #981F76 #987D1F #1F9841
split-complementary
#1F3A98 #98411F #76981F
monochromatic
#0A1332 #152765 #1F3A98 #294DCB #5573DC
Accessibility & contrast
On white
9.92
#1F3A98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#1F3A98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3A98
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3A98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3A98 | 1.00 | 9.92 | 2.12 | 9.92 |
| #FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f3a98; /* rgb */ color: rgb(31, 58, 152); /* oklch */ color: oklch(39.2% 0.157 266.5);
Tailwind
colors: {
custom: {
50: '#6f6fb7',
500: '#1f3a98',
950: '#000000',
},
}SCSS
$custom: #1f3a98; $custom-light: #6f6fb7; $custom-dark: #000000;
JSON
{
"hex": "#1f3a98",
"rgb": {
"r": 31,
"g": 58,
"b": 152
},
"hsl": {
"h": 226.612,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.39194,
"c": 0.15708,
"h": 266.5
},
"luminance": 0.05584
}Semantic roles & 50–950 ramp
primary
#1F3A98
secondary
#C0A853
accent
#C33FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80