#1F3F99#1F3F99
#1F3F99 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.152 H 265.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F99 |
|---|---|
| RGB | rgb(31, 63, 153) |
| HSL | hsl(224, 66%, 36%) |
| HSV | hsv(224, 80%, 60%) |
| CMYK | cmyk(79.7%, 58.8%, 0%, 40%) |
| CIE-LAB | lab(29.78, 22.63, -52.49) |
| CIE-LCH | lch(29.78, 57.16, 293.32°) |
| OKLab | oklab(40.29% -0.0128 -0.1516) |
| OKLCH | oklch(40.29% 0.152 265.2) |
| XYZ | xyz(8.0903, 6.1453, 30.8906) |
| Luminance | 0.0615 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.76
Sapphire (survey)
#2138AB
ΔE00 4.02
Cobalt (survey)
#1E488F
ΔE00 4.07
Darkish Blue
#014182
ΔE00 5.28
Blueberry
#464196
ΔE00 5.76
Twilight Blue
#0A437A
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F99 #99791F
analogous
#1F7C99 #1F3F99 #3C1F99
triadic
#1F3F99 #991F3F #3F991F
tetradic
#1F3F99 #991F7C #99791F #1F993C
square
#1F3F99 #991F7C #99791F #1F993C
split-complementary
#1F3F99 #993C1F #7C991F
monochromatic
#0A1533 #152A66 #1F3F99 #2954CC #5679DD
Accessibility & contrast
On white
9.42
#1F3F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#1F3F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F99
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F99 | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3f99; /* rgb */ color: rgb(31, 63, 153); /* oklch */ color: oklch(40.3% 0.152 265.2);
Tailwind
colors: {
custom: {
50: '#6f73b8',
500: '#1f3f99',
950: '#000000',
},
}SCSS
$custom: #1f3f99; $custom-light: #6f73b8; $custom-dark: #000000;
JSON
{
"hex": "#1f3f99",
"rgb": {
"r": 31,
"g": 63,
"b": 153
},
"hsl": {
"h": 224.262,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.40295,
"c": 0.15215,
"h": 265.2
},
"luminance": 0.06146
}Semantic roles & 50–950 ramp
primary
#1F3F99
secondary
#C0A454
accent
#BC3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80