#1F3AA1#1F3AA1
#1F3AA1 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.169 H 266.8°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3AA1 |
|---|---|
| RGB | rgb(31, 58, 161) |
| HSL | hsl(228, 68%, 38%) |
| HSV | hsv(228, 81%, 63%) |
| CMYK | cmyk(80.7%, 64%, 0%, 36.9%) |
| CIE-LAB | lab(29.13, 29.14, -58.40) |
| CIE-LCH | lch(29.13, 65.27, 296.52°) |
| OKLab | oklab(40.03% -0.0095 -0.169) |
| OKLCH | oklch(40.03% 0.169 266.8) |
| XYZ | xyz(8.5089, 5.8896, 34.3997) |
| Luminance | 0.0589 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.79
Cobalt
#0047AB
ΔE00 5.03
Blueberry
#464196
ΔE00 5.55
Blue Blue
#2242C7
ΔE00 5.55
Cobalt (survey)
#1E488F
ΔE00 6.35
Ocean Blue
#4F42B5
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3AA1 #A1861F
analogous
#1F7BA1 #1F3AA1 #451FA1
triadic
#1F3AA1 #A11F3A #3AA11F
tetradic
#1F3AA1 #A11F7B #A1861F #1FA145
square
#1F3AA1 #A11F7B #A1861F #1FA145
split-complementary
#1F3AA1 #A1451F #7BA11F
monochromatic
#0B153A #15286E #1F3AA1 #294CD4 #5B76DF
Accessibility & contrast
On white
9.64
#1F3AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#1F3AA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3AA1
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3AA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3AA1 | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3aa1; /* rgb */ color: rgb(31, 58, 161); /* oklch */ color: oklch(40.0% 0.169 266.8);
Tailwind
colors: {
custom: {
50: '#7270be',
500: '#1f3aa1',
950: '#000000',
},
}SCSS
$custom: #1f3aa1; $custom-light: #7270be; $custom-dark: #000000;
JSON
{
"hex": "#1f3aa1",
"rgb": {
"r": 31,
"g": 58,
"b": 161
},
"hsl": {
"h": 227.538,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.4003,
"c": 0.16928,
"h": 266.8
},
"luminance": 0.05891
}Semantic roles & 50–950 ramp
primary
#1F3AA1
secondary
#C4AD58
accent
#C73DEB
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81