#1F3EA8#1F3EA8
#1F3EA8 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.174 H 266.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3EA8 |
|---|---|
| RGB | rgb(31, 62, 168) |
| HSL | hsl(226, 69%, 39%) |
| HSV | hsv(226, 82%, 66%) |
| CMYK | cmyk(81.5%, 63.1%, 0%, 34.1%) |
| CIE-LAB | lab(30.79, 29.16, -59.91) |
| CIE-LCH | lch(30.79, 66.63, 295.95°) |
| OKLab | oklab(41.45% -0.0119 -0.1734) |
| OKLCH | oklch(41.45% 0.174 266.1) |
| XYZ | xyz(9.3531, 6.5626, 37.8120) |
| Luminance | 0.0656 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.11
Cobalt
#0047AB
ΔE00 3.90
Blue Blue
#2242C7
ΔE00 4.38
Blueberry
#464196
ΔE00 5.74
Cobalt (survey)
#1E488F
ΔE00 5.87
Ocean Blue
#4F42B5
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3EA8 #A8891F
analogous
#1F83A8 #1F3EA8 #441FA8
triadic
#1F3EA8 #A81F3E #3EA81F
tetradic
#1F3EA8 #A81F83 #A8891F #1FA844
square
#1F3EA8 #A81F83 #A8891F #1FA844
split-complementary
#1F3EA8 #A8441F #83A81F
monochromatic
#0C1841 #152B74 #1F3EA8 #2C53D8 #607DE2
Accessibility & contrast
On white
9.08
#1F3EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#1F3EA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3EA8
9.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3EA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3EA8 | 1.00 | 9.08 | 2.31 | 9.08 |
| #FFFFFF | 9.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #1f3ea8; /* rgb */ color: rgb(31, 62, 168); /* oklch */ color: oklch(41.4% 0.174 266.1);
Tailwind
colors: {
custom: {
50: '#7373c3',
500: '#1f3ea8',
950: '#000000',
},
}SCSS
$custom: #1f3ea8; $custom-light: #7373c3; $custom-dark: #000000;
JSON
{
"hex": "#1f3ea8",
"rgb": {
"r": 31,
"g": 62,
"b": 168
},
"hsl": {
"h": 226.423,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.41448,
"c": 0.17378,
"h": 266.1
},
"luminance": 0.06564
}Semantic roles & 50–950 ramp
primary
#1F3EA8
secondary
#C6AE5D
accent
#C43CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82