#1F3BA7#1F3BA7
#1F3BA7 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.176 H 266.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3BA7 |
|---|---|
| RGB | rgb(31, 59, 167) |
| HSL | hsl(228, 69%, 39%) |
| HSV | hsv(228, 81%, 65%) |
| CMYK | cmyk(81.4%, 64.7%, 0%, 34.5%) |
| CIE-LAB | lab(29.93, 30.77, -60.71) |
| CIE-LCH | lch(29.93, 68.06, 296.88°) |
| OKLab | oklab(40.79% -0.0102 -0.1758) |
| OKLCH | oklch(40.79% 0.176 266.7) |
| XYZ | xyz(9.1016, 6.2082, 37.2703) |
| Luminance | 0.0621 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.28
Blue Blue
#2242C7
ΔE00 4.70
Cobalt
#0047AB
ΔE00 4.79
Blueberry
#464196
ΔE00 5.69
Ocean Blue
#4F42B5
ΔE00 6.43
Cobalt (survey)
#1E488F
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3BA7 #A78B1F
analogous
#1F7FA7 #1F3BA7 #471FA7
triadic
#1F3BA7 #A71F3B #3BA71F
tetradic
#1F3BA7 #A71F7F #A78B1F #1FA747
square
#1F3BA7 #A71F7F #A78B1F #1FA747
split-complementary
#1F3BA7 #A7471F #7FA71F
monochromatic
#0C1740 #152973 #1F3BA7 #2B4FD8 #5F7AE1
Accessibility & contrast
On white
9.37
#1F3BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#1F3BA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3BA7
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3BA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3BA7 | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3ba7; /* rgb */ color: rgb(31, 59, 167); /* oklch */ color: oklch(40.8% 0.176 266.7);
Tailwind
colors: {
custom: {
50: '#7370c2',
500: '#1f3ba7',
950: '#000000',
},
}SCSS
$custom: #1f3ba7; $custom-light: #7370c2; $custom-dark: #000000;
JSON
{
"hex": "#1f3ba7",
"rgb": {
"r": 31,
"g": 59,
"b": 167
},
"hsl": {
"h": 227.647,
"s": 68.687,
"l": 38.824
},
"oklch": {
"l": 0.40787,
"c": 0.17606,
"h": 266.7
},
"luminance": 0.06209
}Semantic roles & 50–950 ramp
primary
#1F3BA7
secondary
#C6B05C
accent
#C73CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81