#1F3EA6#1F3EA6
#1F3EA6 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.171 H 266.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3EA6 |
|---|---|
| RGB | rgb(31, 62, 166) |
| HSL | hsl(226, 69%, 39%) |
| HSV | hsv(226, 81%, 65%) |
| CMYK | cmyk(81.3%, 62.7%, 0%, 34.9%) |
| CIE-LAB | lab(30.61, 28.39, -58.99) |
| CIE-LCH | lch(30.61, 65.47, 295.70°) |
| OKLab | oklab(41.26% -0.0119 -0.1707) |
| OKLCH | oklch(41.26% 0.171 266) |
| XYZ | xyz(9.1682, 6.4886, 36.8382) |
| Luminance | 0.0649 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.26
Cobalt
#0047AB
ΔE00 3.85
Blue Blue
#2242C7
ΔE00 4.66
Cobalt (survey)
#1E488F
ΔE00 5.66
Blueberry
#464196
ΔE00 5.68
Ocean Blue
#4F42B5
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3EA6 #A6871F
analogous
#1F81A6 #1F3EA6 #431FA6
triadic
#1F3EA6 #A61F3E #3EA61F
tetradic
#1F3EA6 #A61F81 #A6871F #1FA643
square
#1F3EA6 #A61F81 #A6871F #1FA643
split-complementary
#1F3EA6 #A6431F #81A61F
monochromatic
#0C173F #152B72 #1F3EA6 #2B52D7 #5E7CE1
Accessibility & contrast
On white
9.14
#1F3EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#1F3EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3EA6
9.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3EA6 | 1.00 | 9.14 | 2.30 | 9.14 |
| #FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #1f3ea6; /* rgb */ color: rgb(31, 62, 166); /* oklch */ color: oklch(41.3% 0.171 266.0);
Tailwind
colors: {
custom: {
50: '#7373c1',
500: '#1f3ea6',
950: '#000000',
},
}SCSS
$custom: #1f3ea6; $custom-light: #7373c1; $custom-dark: #000000;
JSON
{
"hex": "#1f3ea6",
"rgb": {
"r": 31,
"g": 62,
"b": 166
},
"hsl": {
"h": 226.222,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.41263,
"c": 0.1711,
"h": 266
},
"luminance": 0.0649
}Semantic roles & 50–950 ramp
primary
#1F3EA6
secondary
#C5AD5B
accent
#C33CEB
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#090812
muted
#7B7B81