#1F3CA7#1F3CA7
#1F3CA7 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.175 H 266.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3CA7 |
|---|---|
| RGB | rgb(31, 60, 167) |
| HSL | hsl(227, 69%, 39%) |
| HSV | hsv(227, 81%, 65%) |
| CMYK | cmyk(81.4%, 64.1%, 0%, 34.5%) |
| CIE-LAB | lab(30.19, 30.11, -60.29) |
| CIE-LCH | lch(30.19, 67.39, 296.53°) |
| OKLab | oklab(40.97% -0.0107 -0.1745) |
| OKLCH | oklch(40.97% 0.175 266.5) |
| XYZ | xyz(9.1535, 6.3120, 37.2876) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.56
Cobalt
#0047AB
ΔE00 4.49
Blue Blue
#2242C7
ΔE00 4.62
Blueberry
#464196
ΔE00 5.68
Cobalt (survey)
#1E488F
ΔE00 6.31
Ocean Blue
#4F42B5
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3CA7 #A78A1F
analogous
#1F80A7 #1F3CA7 #461FA7
triadic
#1F3CA7 #A71F3C #3CA71F
tetradic
#1F3CA7 #A71F80 #A78A1F #1FA746
square
#1F3CA7 #A71F80 #A78A1F #1FA746
split-complementary
#1F3CA7 #A7461F #80A71F
monochromatic
#0C1740 #152973 #1F3CA7 #2B50D8 #5F7BE1
Accessibility & contrast
On white
9.28
#1F3CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#1F3CA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3CA7
9.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3CA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3CA7 | 1.00 | 9.28 | 2.26 | 9.28 |
| #FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f3ca7; /* rgb */ color: rgb(31, 60, 167); /* oklch */ color: oklch(41.0% 0.175 266.5);
Tailwind
colors: {
custom: {
50: '#7371c2',
500: '#1f3ca7',
950: '#000000',
},
}SCSS
$custom: #1f3ca7; $custom-light: #7371c2; $custom-dark: #000000;
JSON
{
"hex": "#1f3ca7",
"rgb": {
"r": 31,
"g": 60,
"b": 167
},
"hsl": {
"h": 227.206,
"s": 68.687,
"l": 38.824
},
"oklch": {
"l": 0.40974,
"c": 0.17485,
"h": 266.5
},
"luminance": 0.06313
}Semantic roles & 50–950 ramp
primary
#1F3CA7
secondary
#C6AF5C
accent
#C63CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81