#1F87B4#1F87B4
#1F87B4 is a mid, moderate cyan. Relative luminance 0.209; OKLCH L 58.8% C 0.112 H 232.9°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #1F87B4 |
|---|---|
| RGB | rgb(31, 135, 180) |
| HSL | hsl(198, 71%, 41%) |
| HSV | hsv(198, 83%, 71%) |
| CMYK | cmyk(82.8%, 25%, 0%, 29.4%) |
| CIE-LAB | lab(52.85, -12.53, -31.67) |
| CIE-LCH | lch(52.85, 34.06, 248.41°) |
| OKLab | oklab(58.79% -0.0676 -0.0894) |
| OKLCH | oklch(58.79% 0.112 232.9) |
| XYZ | xyz(17.4639, 20.9123, 46.2872) |
| Luminance | 0.2092 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Cerulean
#007BA7
ΔE00 4.65
Dirty Blue
#3F829D
ΔE00 5.02
Water Blue
#0E87CC
ΔE00 5.29
Nice Blue
#107AB0
ΔE00 5.48
Steel Blue
#4682B4
ΔE00 5.71
Cool Blue
#4984B8
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F87B4 #B44C1F
analogous
#1FB497 #1F87B4 #1F3DB4
triadic
#1F87B4 #B41F87 #87B41F
tetradic
#1F87B4 #971FB4 #B44C1F #3DB41F
square
#1F87B4 #971FB4 #B44C1F #3DB41F
split-complementary
#1F87B4 #B41F3D #B4971F
monochromatic
#0D394C #166080 #1F87B4 #34A9DC #68BFE5
Accessibility & contrast
On white
4.05
#1F87B4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#1F87B4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F87B4
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F87B4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F87B4 | 1.00 | 4.05 | 5.18 | 5.18 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7186B6
Deuteranopia (green-blind)
#5D78B3
Tritanopia (blue-blind)
#009396
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #1f87b4; /* rgb */ color: rgb(31, 135, 180); /* oklch */ color: oklch(58.8% 0.112 232.9);
Tailwind
colors: {
custom: {
50: '#75aaca',
500: '#1f87b4',
950: '#000000',
},
}SCSS
$custom: #1f87b4; $custom-light: #75aaca; $custom-dark: #000000;
JSON
{
"hex": "#1f87b4",
"rgb": {
"r": 31,
"g": 135,
"b": 180
},
"hsl": {
"h": 198.121,
"s": 70.616,
"l": 41.373
},
"oklch": {
"l": 0.58793,
"c": 0.11208,
"h": 232.9
},
"luminance": 0.20915
}Semantic roles & 50–950 ramp
primary
#1F87B4
secondary
#CB8364
accent
#703AED
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82