#1F3EA1#1F3EA1
#1F3EA1 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.164 H 265.9°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3EA1 |
|---|---|
| RGB | rgb(31, 62, 161) |
| HSL | hsl(226, 68%, 38%) |
| HSV | hsv(226, 81%, 63%) |
| CMYK | cmyk(80.7%, 61.5%, 0%, 36.9%) |
| CIE-LAB | lab(30.18, 26.45, -56.69) |
| CIE-LCH | lch(30.18, 62.56, 295.01°) |
| OKLab | oklab(40.81% -0.0119 -0.1639) |
| OKLCH | oklch(40.81% 0.164 265.9) |
| XYZ | xyz(8.7185, 6.3087, 34.4695) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.76
Cobalt
#0047AB
ΔE00 3.81
Cobalt (survey)
#1E488F
ΔE00 5.15
Blue Blue
#2242C7
ΔE00 5.36
Blueberry
#464196
ΔE00 5.59
Darkish Blue
#014182
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3EA1 #A1821F
analogous
#1F7FA1 #1F3EA1 #411FA1
triadic
#1F3EA1 #A11F3E #3EA11F
tetradic
#1F3EA1 #A11F7F #A1821F #1FA141
square
#1F3EA1 #A11F7F #A1821F #1FA141
split-complementary
#1F3EA1 #A1411F #7FA11F
monochromatic
#0B163A #152A6E #1F3EA1 #2952D4 #5B7BDF
Accessibility & contrast
On white
9.28
#1F3EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#1F3EA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3EA1
9.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3EA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3EA1 | 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)
#004DA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f3ea1; /* rgb */ color: rgb(31, 62, 161); /* oklch */ color: oklch(40.8% 0.164 265.9);
Tailwind
colors: {
custom: {
50: '#7172be',
500: '#1f3ea1',
950: '#000000',
},
}SCSS
$custom: #1f3ea1; $custom-light: #7172be; $custom-dark: #000000;
JSON
{
"hex": "#1f3ea1",
"rgb": {
"r": 31,
"g": 62,
"b": 161
},
"hsl": {
"h": 225.692,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.40805,
"c": 0.16437,
"h": 265.9
},
"luminance": 0.0631
}Semantic roles & 50–950 ramp
primary
#1F3EA1
secondary
#C4AA58
accent
#C13DEB
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81