#1F3F9E#1F3F9E
#1F3F9E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.159 H 265.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F9E |
|---|---|
| RGB | rgb(31, 63, 158) |
| HSL | hsl(225, 67%, 37%) |
| HSV | hsv(225, 80%, 62%) |
| CMYK | cmyk(80.4%, 60.1%, 0%, 38%) |
| CIE-LAB | lab(30.19, 24.60, -54.85) |
| CIE-LCH | lch(30.19, 60.12, 294.16°) |
| OKLab | oklab(40.74% -0.0126 -0.1585) |
| OKLCH | oklch(40.74% 0.159 265.5) |
| XYZ | xyz(8.5120, 6.3139, 33.1112) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.39
Cobalt
#0047AB
ΔE00 3.57
Cobalt (survey)
#1E488F
ΔE00 4.55
Blueberry
#464196
ΔE00 5.66
Blue Blue
#2242C7
ΔE00 5.80
Darkish Blue
#014182
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F9E #9E7E1F
analogous
#1F7F9E #1F3F9E #3F1F9E
triadic
#1F3F9E #9E1F3F #3F9E1F
tetradic
#1F3F9E #9E1F7F #9E7E1F #1F9E3F
square
#1F3F9E #9E1F7F #9E7E1F #1F9E3F
split-complementary
#1F3F9E #9E3F1F #7F9E1F
monochromatic
#0B1638 #152B6B #1F3F9E #2953D1 #597BDE
Accessibility & contrast
On white
9.28
#1F3F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#1F3F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F9E
9.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F9E | 1.00 | 9.28 | 2.26 | 9.28 |
| #FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f3f9e; /* rgb */ color: rgb(31, 63, 158); /* oklch */ color: oklch(40.7% 0.159 265.5);
Tailwind
colors: {
custom: {
50: '#7173bb',
500: '#1f3f9e',
950: '#000000',
},
}SCSS
$custom: #1f3f9e; $custom-light: #7173bb; $custom-dark: #000000;
JSON
{
"hex": "#1f3f9e",
"rgb": {
"r": 31,
"g": 63,
"b": 158
},
"hsl": {
"h": 224.882,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.40736,
"c": 0.15904,
"h": 265.5
},
"luminance": 0.06315
}Semantic roles & 50–950 ramp
primary
#1F3F9E
secondary
#C2A756
accent
#BF3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81