#1F398A#1F398A
#1F398A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.7% C 0.139 H 266.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).
Color values
| HEX | #1F398A |
|---|---|
| RGB | rgb(31, 57, 138) |
| HSL | hsl(225, 63%, 33%) |
| HSV | hsv(225, 78%, 54%) |
| CMYK | cmyk(77.5%, 58.7%, 0%, 45.9%) |
| CIE-LAB | lab(26.88, 20.82, -47.99) |
| CIE-LCH | lch(26.88, 52.31, 293.46°) |
| OKLab | oklab(37.74% -0.0091 -0.1385) |
| OKLCH | oklch(37.74% 0.139 266.2) |
| XYZ | xyz(6.6140, 5.0518, 24.6663) |
| Luminance | 0.0505 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.18
Darkish Blue
#014182
ΔE00 5.34
Cobalt (survey)
#1E488F
ΔE00 5.35
Blueberry
#464196
ΔE00 6.12
Cobalt
#0047AB
ΔE00 6.22
Marine Blue
#01386A
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F398A #8A701F
analogous
#1F6E8A #1F398A #3B1F8A
triadic
#1F398A #8A1F39 #398A1F
tetradic
#1F398A #8A1F6E #8A701F #1F8A3B
square
#1F398A #8A1F6E #8A701F #1F8A3B
split-complementary
#1F398A #8A3B1F #6E8A1F
monochromatic
#091026 #142458 #1F398A #2A4EBC #4C6ED7
Accessibility & contrast
On white
10.44
#1F398A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#1F398A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F398A
10.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F398A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F398A | 1.00 | 10.44 | 2.01 | 10.44 |
| #FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f398a; /* rgb */ color: rgb(31, 57, 138); /* oklch */ color: oklch(37.7% 0.139 266.2);
Tailwind
colors: {
custom: {
50: '#6c6fad',
500: '#1f398a',
950: '#000000',
},
}SCSS
$custom: #1f398a; $custom-light: #6c6fad; $custom-dark: #000000;
JSON
{
"hex": "#1f398a",
"rgb": {
"r": 31,
"g": 57,
"b": 138
},
"hsl": {
"h": 225.421,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.37739,
"c": 0.13877,
"h": 266.2
},
"luminance": 0.05053
}Semantic roles & 50–950 ramp
primary
#1F398A
secondary
#BA9F4B
accent
#BE41E6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F