#1F398C#1F398C
#1F398C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.142 H 266.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).
Color values
| HEX | #1F398C |
|---|---|
| RGB | rgb(31, 57, 140) |
| HSL | hsl(226, 64%, 34%) |
| HSV | hsv(226, 78%, 55%) |
| CMYK | cmyk(77.9%, 59.3%, 0%, 45.1%) |
| CIE-LAB | lab(27.05, 21.62, -48.96) |
| CIE-LCH | lch(27.05, 53.52, 293.82°) |
| OKLab | oklab(37.91% -0.0091 -0.1413) |
| OKLCH | oklch(37.91% 0.142 266.3) |
| XYZ | xyz(6.7602, 5.1103, 25.4360) |
| Luminance | 0.0511 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.86
Cobalt (survey)
#1E488F
ΔE00 5.40
Darkish Blue
#014182
ΔE00 5.50
Blueberry
#464196
ΔE00 5.99
Cobalt
#0047AB
ΔE00 6.08
Twilight Blue
#0A437A
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F398C #8C721F
analogous
#1F6F8C #1F398C #3B1F8C
triadic
#1F398C #8C1F39 #398C1F
tetradic
#1F398C #8C1F6F #8C721F #1F8C3B
square
#1F398C #8C1F6F #8C721F #1F8C3B
split-complementary
#1F398C #8C3B1F #6F8C1F
monochromatic
#091028 #14255A #1F398C #2A4DBE #4E6FD8
Accessibility & contrast
On white
10.38
#1F398C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#1F398C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F398C
10.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F398C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F398C | 1.00 | 10.38 | 2.02 | 10.38 |
| #FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f398c; /* rgb */ color: rgb(31, 57, 140); /* oklch */ color: oklch(37.9% 0.142 266.3);
Tailwind
colors: {
custom: {
50: '#6c6fae',
500: '#1f398c',
950: '#000000',
},
}SCSS
$custom: #1f398c; $custom-light: #6c6fae; $custom-dark: #000000;
JSON
{
"hex": "#1f398c",
"rgb": {
"r": 31,
"g": 57,
"b": 140
},
"hsl": {
"h": 225.688,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.37914,
"c": 0.14161,
"h": 266.3
},
"luminance": 0.05111
}Semantic roles & 50–950 ramp
primary
#1F398C
secondary
#BBA04C
accent
#BF41E7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F