#1F3F8E#1F3F8E
#1F3F8E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.137 H 264.3°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F8E |
|---|---|
| RGB | rgb(31, 63, 142) |
| HSL | hsl(223, 64%, 34%) |
| HSV | hsv(223, 78%, 56%) |
| CMYK | cmyk(78.2%, 55.6%, 0%, 44.3%) |
| CIE-LAB | lab(28.90, 18.26, -47.18) |
| CIE-LCH | lch(28.90, 50.59, 291.16°) |
| OKLab | oklab(39.36% -0.0135 -0.136) |
| OKLCH | oklch(39.36% 0.137 264.3) |
| XYZ | xyz(7.2233, 5.7985, 26.3245) |
| Luminance | 0.0580 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.34
Darkish Blue
#014182
ΔE00 4.03
Cobalt
#0047AB
ΔE00 4.59
Twilight Blue
#0A437A
ΔE00 5.15
Sapphire (survey)
#2138AB
ΔE00 5.57
Marine Blue
#01386A
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F8E #8E6E1F
analogous
#1F778E #1F3F8E #371F8E
triadic
#1F3F8E #8E1F3F #3F8E1F
tetradic
#1F3F8E #8E1F77 #8E6E1F #1F8E37
square
#1F3F8E #8E1F77 #8E6E1F #1F8E37
split-complementary
#1F3F8E #8E371F #778E1F
monochromatic
#09122A #14295C #1F3F8E #2A55C0 #4F77D9
Accessibility & contrast
On white
9.72
#1F3F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#1F3F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F8E
9.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F8E | 1.00 | 9.72 | 2.16 | 9.72 |
| #FFFFFF | 9.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f3f8e; /* rgb */ color: rgb(31, 63, 142); /* oklch */ color: oklch(39.4% 0.137 264.3);
Tailwind
colors: {
custom: {
50: '#6c73b0',
500: '#1f3f8e',
950: '#000000',
},
}SCSS
$custom: #1f3f8e; $custom-light: #6c73b0; $custom-dark: #000000;
JSON
{
"hex": "#1f3f8e",
"rgb": {
"r": 31,
"g": 63,
"b": 142
},
"hsl": {
"h": 222.703,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.39358,
"c": 0.13667,
"h": 264.3
},
"luminance": 0.05799
}Semantic roles & 50–950 ramp
primary
#1F3F8E
secondary
#BB9C4D
accent
#B741E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080810
muted
#7B7B7F