#1F5DC2#1F5DC2
#1F5DC2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.171 H 260.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #1F5DC2 |
|---|---|
| RGB | rgb(31, 93, 194) |
| HSL | hsl(217, 72%, 44%) |
| HSV | hsv(217, 84%, 76%) |
| CMYK | cmyk(84%, 52.1%, 0%, 23.9%) |
| CIE-LAB | lab(41.24, 18.68, -58.24) |
| CIE-LCH | lch(41.24, 61.17, 287.78°) |
| OKLab | oklab(49.96% -0.0296 -0.1679) |
| OKLCH | oklch(49.96% 0.171 260) |
| XYZ | xyz(14.2135, 12.0133, 52.5981) |
| Luminance | 0.1202 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 1.91
Sapphire
#0F52BA
ΔE00 3.72
Mid Blue
#276AB3
ΔE00 5.34
French Blue
#436BAD
ΔE00 5.38
Azul
#1D5DEC
ΔE00 5.61
Denim Blue
#3B5B92
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F5DC2 #C2841F
analogous
#1FAFC2 #1F5DC2 #331FC2
triadic
#1F5DC2 #C21F5D #5DC21F
tetradic
#1F5DC2 #C21FAF #C2841F #1FC233
square
#1F5DC2 #C21FAF #C2841F #1FC233
split-complementary
#1F5DC2 #C2331F #AFC21F
monochromatic
#0E2A58 #17448D #1F5DC2 #3E7CE0 #73A0E9
Accessibility & contrast
On white
6.17
#1F5DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#1F5DC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F5DC2
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F5DC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F5DC2 | 1.00 | 6.17 | 3.40 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1469C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #1f5dc2; /* rgb */ color: rgb(31, 93, 194); /* oklch */ color: oklch(50.0% 0.171 260.0);
Tailwind
colors: {
custom: {
50: '#788ad5',
500: '#1f5dc2',
950: '#000000',
},
}SCSS
$custom: #1f5dc2; $custom-light: #788ad5; $custom-dark: #000000;
JSON
{
"hex": "#1f5dc2",
"rgb": {
"r": 31,
"g": 93,
"b": 194
},
"hsl": {
"h": 217.178,
"s": 72.444,
"l": 44.118
},
"oklch": {
"l": 0.49959,
"c": 0.17053,
"h": 260
},
"luminance": 0.12015
}Semantic roles & 50–950 ramp
primary
#1F5DC2
secondary
#CFAA6D
accent
#AA39EF
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83