#1F398F#1F398F
#1F398F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.146 H 266.5°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).
Color values
| HEX | #1F398F |
|---|---|
| RGB | rgb(31, 57, 143) |
| HSL | hsl(226, 64%, 34%) |
| HSV | hsv(226, 78%, 56%) |
| CMYK | cmyk(78.3%, 60.1%, 0%, 43.9%) |
| CIE-LAB | lab(27.30, 22.80, -50.40) |
| CIE-LCH | lch(27.30, 55.32, 294.34°) |
| OKLab | oklab(38.18% -0.0089 -0.1456) |
| OKLCH | oklch(38.18% 0.146 266.5) |
| XYZ | xyz(6.9844, 5.1999, 26.6169) |
| Luminance | 0.0520 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.39
Cobalt (survey)
#1E488F
ΔE00 5.51
Darkish Blue
#014182
ΔE00 5.75
Blueberry
#464196
ΔE00 5.82
Cobalt
#0047AB
ΔE00 5.88
Darkslateblue
#483D8B
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F398F #8F751F
analogous
#1F718F #1F398F #3D1F8F
triadic
#1F398F #8F1F39 #398F1F
tetradic
#1F398F #8F1F71 #8F751F #1F8F3D
square
#1F398F #8F1F71 #8F751F #1F8F3D
split-complementary
#1F398F #8F3D1F #718F1F
monochromatic
#09112A #14255D #1F398F #2A4DC1 #4F6FD9
Accessibility & contrast
On white
10.29
#1F398F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#1F398F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F398F
10.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F398F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F398F | 1.00 | 10.29 | 2.04 | 10.29 |
| #FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f398f; /* rgb */ color: rgb(31, 57, 143); /* oklch */ color: oklch(38.2% 0.146 266.5);
Tailwind
colors: {
custom: {
50: '#6d6fb1',
500: '#1f398f',
950: '#000000',
},
}SCSS
$custom: #1f398f; $custom-light: #6d6fb1; $custom-dark: #000000;
JSON
{
"hex": "#1f398f",
"rgb": {
"r": 31,
"g": 57,
"b": 143
},
"hsl": {
"h": 226.071,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.3818,
"c": 0.14584,
"h": 266.5
},
"luminance": 0.05201
}Semantic roles & 50–950 ramp
primary
#1F398F
secondary
#BCA24E
accent
#C140E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80