#1F3C98#1F3C98
#1F3C98 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.155 H 266.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3C98 |
|---|---|
| RGB | rgb(31, 60, 152) |
| HSL | hsl(226, 66%, 36%) |
| HSV | hsv(226, 80%, 60%) |
| CMYK | cmyk(79.6%, 60.5%, 0%, 40.4%) |
| CIE-LAB | lab(28.87, 24.29, -53.35) |
| CIE-LCH | lch(28.87, 58.62, 294.48°) |
| OKLab | oklab(39.59% -0.0108 -0.1542) |
| OKLCH | oklch(39.59% 0.155 266) |
| XYZ | xyz(7.8464, 5.7891, 30.4036) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.46
Cobalt
#0047AB
ΔE00 4.61
Cobalt (survey)
#1E488F
ΔE00 4.99
Blueberry
#464196
ΔE00 5.57
Darkish Blue
#014182
ΔE00 5.84
Blue Blue
#2242C7
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3C98 #987B1F
analogous
#1F7898 #1F3C98 #3E1F98
triadic
#1F3C98 #981F3C #3C981F
tetradic
#1F3C98 #981F78 #987B1F #1F983E
square
#1F3C98 #981F78 #987B1F #1F983E
split-complementary
#1F3C98 #983E1F #78981F
monochromatic
#0A1432 #152865 #1F3C98 #2950CB #5575DC
Accessibility & contrast
On white
9.73
#1F3C98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#1F3C98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3C98
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3C98 | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f3c98; /* rgb */ color: rgb(31, 60, 152); /* oklch */ color: oklch(39.6% 0.155 266.0);
Tailwind
colors: {
custom: {
50: '#6f71b7',
500: '#1f3c98',
950: '#000000',
},
}SCSS
$custom: #1f3c98; $custom-light: #6f71b7; $custom-dark: #000000;
JSON
{
"hex": "#1f3c98",
"rgb": {
"r": 31,
"g": 60,
"b": 152
},
"hsl": {
"h": 225.62,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.39594,
"c": 0.15456,
"h": 266
},
"luminance": 0.0579
}Semantic roles & 50–950 ramp
primary
#1F3C98
secondary
#C0A653
accent
#C03FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80