#1F87A8#1F87A8

#1F87A8 is a mid, moderate cyan. Relative luminance 0.204; OKLCH L 58.2% C 0.102 H 224.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#1F87A8
RGBrgb(31, 135, 168)
HSLhsl(194, 69%, 39%)
HSVhsv(194, 82%, 66%)
CMYKcmyk(81.5%, 19.6%, 0%, 34.1%)
CIE-LABlab(52.34, -16.79, -25.57)
CIE-LCHlch(52.34, 30.59, 236.70°)
OKLaboklab(58.21% -0.0721 -0.0718)
OKLCHoklch(58.21% 0.102 224.9)
XYZxyz(16.2940, 20.4444, 40.1256)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F87A8 #A8401F
analogous
#1FA885 #1F87A8 #1F42A8
triadic
#1F87A8 #A81F87 #87A81F
tetradic
#1F87A8 #851FA8 #A8401F #42A81F
square
#1F87A8 #851FA8 #A8401F #42A81F
split-complementary
#1F87A8 #A81F42 #A8851F
monochromatic
#0C3441 #155D74 #1F87A8 #2CAFD8 #60C2E2

Accessibility & contrast

On white

4.13
#1F87A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#1F87A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F87A8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F87A8#FFFFFF#000000##000000
##1F87A81.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7584AA
Deuteranopia (green-blind)
#6377A8
Tritanopia (blue-blind)
#009192
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f87a8;
/* rgb */ color: rgb(31, 135, 168);
/* oklch */ color: oklch(58.2% 0.102 224.9);
Tailwind
colors: {
  custom: {
    50: '#73aac2',
    500: '#1f87a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f87a8;
$custom-light: #73aac2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f87a8",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 168
  },
  "hsl": {
    "h": 194.453,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.58208,
    "c": 0.10174,
    "h": 224.9
  },
  "luminance": 0.20446
}

Semantic roles & 50–950 ramp

primary
#1F87A8
secondary
#C6765D
accent
#663CEC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#091012
muted
#7B7F81

Preview Lab

Preview with #1F87A8

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

Preview Lab → · Contrast checker → · Palette generator →

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