#1F3CB4#1F3CB4
#1F3CB4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.192 H 266.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3CB4 |
|---|---|
| RGB | rgb(31, 60, 180) |
| HSL | hsl(228, 71%, 41%) |
| HSV | hsv(228, 83%, 71%) |
| CMYK | cmyk(82.8%, 66.7%, 0%, 29.4%) |
| CIE-LAB | lab(31.39, 35.02, -66.09) |
| CIE-LCH | lch(31.39, 74.80, 297.92°) |
| OKLab | oklab(42.22% -0.0112 -0.1915) |
| OKLCH | oklch(42.22% 0.192 266.7) |
| XYZ | xyz(10.4163, 6.8171, 43.9380) |
| Luminance | 0.0682 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.61
Blue Blue
#2242C7
ΔE00 3.01
Cobalt
#0047AB
ΔE00 5.07
Ocean Blue
#4F42B5
ΔE00 5.60
Blue (survey)
#0343DF
ΔE00 5.69
Blueberry
#464196
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3CB4 #B4971F
analogous
#1F87B4 #1F3CB4 #4D1FB4
triadic
#1F3CB4 #B41F3C #3CB41F
tetradic
#1F3CB4 #B41F87 #B4971F #1FB44D
square
#1F3CB4 #B41F87 #B4971F #1FB44D
split-complementary
#1F3CB4 #B44D1F #87B41F
monochromatic
#0D194C #162B80 #1F3CB4 #3455DC #6881E5
Accessibility & contrast
On white
8.88
#1F3CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#1F3CB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3CB4
8.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3CB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3CB4 | 1.00 | 8.88 | 2.36 | 8.88 |
| #FFFFFF | 8.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1f3cb4; /* rgb */ color: rgb(31, 60, 180); /* oklch */ color: oklch(42.2% 0.192 266.7);
Tailwind
colors: {
custom: {
50: '#7771cc',
500: '#1f3cb4',
950: '#000000',
},
}SCSS
$custom: #1f3cb4; $custom-light: #7771cc; $custom-dark: #000000;
JSON
{
"hex": "#1f3cb4",
"rgb": {
"r": 31,
"g": 60,
"b": 180
},
"hsl": {
"h": 228.322,
"s": 70.616,
"l": 41.373
},
"oklch": {
"l": 0.42224,
"c": 0.1918,
"h": 266.7
},
"luminance": 0.06818
}Semantic roles & 50–950 ramp
primary
#1F3CB4
secondary
#CBB764
accent
#CB3AED
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0A0713
muted
#7C7A82