#1F3AA0#1F3AA0
#1F3AA0 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.168 H 266.8°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3AA0 |
|---|---|
| RGB | rgb(31, 58, 160) |
| HSL | hsl(227, 68%, 37%) |
| HSV | hsv(227, 81%, 63%) |
| CMYK | cmyk(80.6%, 63.8%, 0%, 37.3%) |
| CIE-LAB | lab(29.04, 28.75, -57.94) |
| CIE-LCH | lch(29.04, 64.69, 296.39°) |
| OKLab | oklab(39.93% -0.0095 -0.1677) |
| OKLCH | oklch(39.93% 0.168 266.8) |
| XYZ | xyz(8.4211, 5.8545, 33.9371) |
| Luminance | 0.0585 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.93
Cobalt
#0047AB
ΔE00 5.03
Blueberry
#464196
ΔE00 5.53
Blue Blue
#2242C7
ΔE00 5.68
Cobalt (survey)
#1E488F
ΔE00 6.27
Darkslateblue
#483D8B
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3AA0 #A0851F
analogous
#1F7AA0 #1F3AA0 #451FA0
triadic
#1F3AA0 #A01F3A #3AA01F
tetradic
#1F3AA0 #A01F7A #A0851F #1FA045
square
#1F3AA0 #A01F7A #A0851F #1FA045
split-complementary
#1F3AA0 #A0451F #7AA01F
monochromatic
#0B1539 #15276D #1F3AA0 #294DD3 #5A76DF
Accessibility & contrast
On white
9.67
#1F3AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#1F3AA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3AA0
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3AA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3AA0 | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f3aa0; /* rgb */ color: rgb(31, 58, 160); /* oklch */ color: oklch(39.9% 0.168 266.8);
Tailwind
colors: {
custom: {
50: '#7170bd',
500: '#1f3aa0',
950: '#000000',
},
}SCSS
$custom: #1f3aa0; $custom-light: #7170bd; $custom-dark: #000000;
JSON
{
"hex": "#1f3aa0",
"rgb": {
"r": 31,
"g": 58,
"b": 160
},
"hsl": {
"h": 227.442,
"s": 67.539,
"l": 37.451
},
"oklch": {
"l": 0.39935,
"c": 0.16793,
"h": 266.8
},
"luminance": 0.05855
}Semantic roles & 50–950 ramp
primary
#1F3AA0
secondary
#C3AD58
accent
#C63DEA
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81