#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
RGBrgb(31, 135, 180)
HSLhsl(198, 71%, 41%)
HSVhsv(198, 83%, 71%)
CMYKcmyk(82.8%, 25%, 0%, 29.4%)
CIE-LABlab(52.85, -12.53, -31.67)
CIE-LCHlch(52.85, 34.06, 248.41°)
OKLaboklab(58.79% -0.0676 -0.0894)
OKLCHoklch(58.79% 0.112 232.9)
XYZxyz(17.4639, 20.9123, 46.2872)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

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
##1F87B41.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.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

Preview Lab

Preview with #1F87B4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1F87B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva