#1F3FA1#1F3FA1
#1F3FA1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.163 H 265.6°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3FA1 |
|---|---|
| RGB | rgb(31, 63, 161) |
| HSL | hsl(225, 68%, 38%) |
| HSV | hsv(225, 81%, 63%) |
| CMYK | cmyk(80.7%, 60.9%, 0%, 36.9%) |
| CIE-LAB | lab(30.44, 25.77, -56.26) |
| CIE-LCH | lch(30.44, 61.88, 294.62°) |
| OKLab | oklab(41% -0.0125 -0.1626) |
| OKLCH | oklch(41% 0.163 265.6) |
| XYZ | xyz(8.7733, 6.4185, 34.4878) |
| Luminance | 0.0642 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.05
Cobalt
#0047AB
ΔE00 3.52
Cobalt (survey)
#1E488F
ΔE00 4.85
Blue Blue
#2242C7
ΔE00 5.36
Blueberry
#464196
ΔE00 5.66
Darkish Blue
#014182
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3FA1 #A1811F
analogous
#1F80A1 #1F3FA1 #401FA1
triadic
#1F3FA1 #A11F3F #3FA11F
tetradic
#1F3FA1 #A11F80 #A1811F #1FA140
square
#1F3FA1 #A11F80 #A1811F #1FA140
split-complementary
#1F3FA1 #A1401F #80A11F
monochromatic
#0B173A #152B6E #1F3FA1 #2953D4 #5B7CDF
Accessibility & contrast
On white
9.19
#1F3FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#1F3FA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3FA1
9.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3FA1 | 1.00 | 9.19 | 2.28 | 9.19 |
| #FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #1f3fa1; /* rgb */ color: rgb(31, 63, 161); /* oklch */ color: oklch(41.0% 0.163 265.6);
Tailwind
colors: {
custom: {
50: '#7173be',
500: '#1f3fa1',
950: '#000000',
},
}SCSS
$custom: #1f3fa1; $custom-light: #7173be; $custom-dark: #000000;
JSON
{
"hex": "#1f3fa1",
"rgb": {
"r": 31,
"g": 63,
"b": 161
},
"hsl": {
"h": 225.231,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.41004,
"c": 0.16313,
"h": 265.6
},
"luminance": 0.0642
}Semantic roles & 50–950 ramp
primary
#1F3FA1
secondary
#C4A958
accent
#C03DEB
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81