#1F3C99#1F3C99
#1F3C99 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.156 H 266.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3C99 |
|---|---|
| RGB | rgb(31, 60, 153) |
| HSL | hsl(226, 66%, 36%) |
| HSV | hsv(226, 80%, 60%) |
| CMYK | cmyk(79.7%, 60.8%, 0%, 40%) |
| CIE-LAB | lab(28.96, 24.68, -53.83) |
| CIE-LCH | lch(28.96, 59.21, 294.63°) |
| OKLab | oklab(39.68% -0.0107 -0.1556) |
| OKLCH | oklch(39.68% 0.156 266) |
| XYZ | xyz(7.9287, 5.8220, 30.8367) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.32
Cobalt
#0047AB
ΔE00 4.57
Cobalt (survey)
#1E488F
ΔE00 5.07
Blueberry
#464196
ΔE00 5.55
Darkish Blue
#014182
ΔE00 5.95
Blue Blue
#2242C7
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3C99 #997C1F
analogous
#1F7999 #1F3C99 #3F1F99
triadic
#1F3C99 #991F3C #3C991F
tetradic
#1F3C99 #991F79 #997C1F #1F993F
square
#1F3C99 #991F79 #997C1F #1F993F
split-complementary
#1F3C99 #993F1F #79991F
monochromatic
#0A1433 #152866 #1F3C99 #2950CC #5676DD
Accessibility & contrast
On white
9.70
#1F3C99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#1F3C99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3C99
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3C99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3C99 | 1.00 | 9.70 | 2.16 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f3c99; /* rgb */ color: rgb(31, 60, 153); /* oklch */ color: oklch(39.7% 0.156 266.0);
Tailwind
colors: {
custom: {
50: '#6f71b8',
500: '#1f3c99',
950: '#000000',
},
}SCSS
$custom: #1f3c99; $custom-light: #6f71b8; $custom-dark: #000000;
JSON
{
"hex": "#1f3c99",
"rgb": {
"r": 31,
"g": 60,
"b": 153
},
"hsl": {
"h": 225.738,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.39684,
"c": 0.15594,
"h": 266
},
"luminance": 0.05823
}Semantic roles & 50–950 ramp
primary
#1F3C99
secondary
#C0A654
accent
#C13FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80