#1F87BC#1F87BC

#1F87BC is a mid, vivid cyan. Relative luminance 0.212; OKLCH L 59.2% C 0.120 H 237.3°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#1F87BC
RGBrgb(31, 135, 188)
HSLhsl(200, 72%, 43%)
HSVhsv(200, 84%, 74%)
CMYKcmyk(83.5%, 28.2%, 0%, 26.3%)
CIE-LABlab(53.22, -9.63, -35.68)
CIE-LCHlch(53.22, 36.95, 254.90°)
OKLaboklab(59.21% -0.0649 -0.101)
OKLCHoklch(59.21% 0.12 237.3)
XYZxyz(18.3025, 21.2478, 50.7038)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F87BC #BC541F
analogous
#1FBCA2 #1F87BC #1F38BC
triadic
#1F87BC #BC1F87 #87BC1F
tetradic
#1F87BC #A21FBC #BC541F #38BC1F
square
#1F87BC #A21FBC #BC541F #38BC1F
split-complementary
#1F87BC #BC1F38 #BCA21F
monochromatic
#0E3C53 #166187 #1F87BC #3AA7DE #6EBEE7

Accessibility & contrast

On white

4.00
#1F87BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#1F87BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F87BC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F87BC#FFFFFF#000000##000000
##1F87BC1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D87BE
Deuteranopia (green-blind)
#5979BB
Tritanopia (blue-blind)
#009599
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #1f87bc;
/* rgb */ color: rgb(31, 135, 188);
/* oklch */ color: oklch(59.2% 0.120 237.3);
Tailwind
colors: {
  custom: {
    50: '#76a9d0',
    500: '#1f87bc',
    950: '#000000',
  },
}
SCSS
$custom: #1f87bc;
$custom-light: #76a9d0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f87bc",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 188
  },
  "hsl": {
    "h": 200.255,
    "s": 71.689,
    "l": 42.941
  },
  "oklch": {
    "l": 0.59205,
    "c": 0.12004,
    "h": 237.3
  },
  "luminance": 0.2125
}

Semantic roles & 50–950 ramp

primary
#1F87BC
secondary
#CD8B69
accent
#7639EE
background
#F7FAFC
surface
#EEF4F9
border
#C9CED2
text
#0A1014
muted
#7C7F82

Preview Lab

Preview with #1F87BC

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

Preview Lab → · Contrast checker → · Palette generator →

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