#1F3E8A#1F3E8A
#1F3E8A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.132 H 264.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3E8A |
|---|---|
| RGB | rgb(31, 62, 138) |
| HSL | hsl(223, 63%, 33%) |
| HSV | hsv(223, 78%, 54%) |
| CMYK | cmyk(77.5%, 55.1%, 0%, 45.9%) |
| CIE-LAB | lab(28.30, 17.35, -45.68) |
| CIE-LCH | lch(28.30, 48.86, 290.80°) |
| OKLab | oklab(38.81% -0.0131 -0.1316) |
| OKLCH | oklch(38.81% 0.132 264.3) |
| XYZ | xyz(6.8735, 5.5708, 24.7528) |
| Luminance | 0.0557 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.58
Darkish Blue
#014182
ΔE00 3.89
Twilight Blue
#0A437A
ΔE00 5.00
Cobalt
#0047AB
ΔE00 5.17
Marine Blue
#01386A
ΔE00 5.81
Sapphire (survey)
#2138AB
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3E8A #8A6B1F
analogous
#1F738A #1F3E8A #351F8A
triadic
#1F3E8A #8A1F3E #3E8A1F
tetradic
#1F3E8A #8A1F73 #8A6B1F #1F8A35
square
#1F3E8A #8A1F73 #8A6B1F #1F8A35
split-complementary
#1F3E8A #8A351F #738A1F
monochromatic
#091126 #142858 #1F3E8A #2A54BC #4C75D7
Accessibility & contrast
On white
9.93
#1F3E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#1F3E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3E8A
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3E8A | 1.00 | 9.93 | 2.11 | 9.93 |
| #FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#02488D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f3e8a; /* rgb */ color: rgb(31, 62, 138); /* oklch */ color: oklch(38.8% 0.132 264.3);
Tailwind
colors: {
custom: {
50: '#6b72ad',
500: '#1f3e8a',
950: '#000000',
},
}SCSS
$custom: #1f3e8a; $custom-light: #6b72ad; $custom-dark: #000000;
JSON
{
"hex": "#1f3e8a",
"rgb": {
"r": 31,
"g": 62,
"b": 138
},
"hsl": {
"h": 222.617,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.3881,
"c": 0.13225,
"h": 264.3
},
"luminance": 0.05572
}Semantic roles & 50–950 ramp
primary
#1F3E8A
secondary
#BA9A4B
accent
#B741E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F