#1F87AB#1F87AB

#1F87AB is a mid, moderate cyan. Relative luminance 0.206; OKLCH L 58.4% C 0.104 H 227.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#1F87AB
RGBrgb(31, 135, 171)
HSLhsl(195, 69%, 40%)
HSVhsv(195, 82%, 67%)
CMYKcmyk(81.9%, 21.1%, 0%, 32.9%)
CIE-LABlab(52.46, -15.74, -27.10)
CIE-LCHlch(52.46, 31.34, 239.86°)
OKLaboklab(58.35% -0.0709 -0.0762)
OKLCHoklch(58.35% 0.104 227)
XYZxyz(16.5767, 20.5575, 41.6145)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F87AB #AB431F
analogous
#1FAB89 #1F87AB #1F41AB
triadic
#1F87AB #AB1F87 #87AB1F
tetradic
#1F87AB #891FAB #AB431F #41AB1F
square
#1F87AB #891FAB #AB431F #41AB1F
split-complementary
#1F87AB #AB1F41 #AB891F
monochromatic
#0C3543 #165E77 #1F87AB #2EADD9 #62C1E3

Accessibility & contrast

On white

4.11
#1F87AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#1F87AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F87AB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F87AB#FFFFFF#000000##000000
##1F87AB1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7484AD
Deuteranopia (green-blind)
#6177AB
Tritanopia (blue-blind)
#009193
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f87ab;
/* rgb */ color: rgb(31, 135, 171);
/* oklch */ color: oklch(58.4% 0.104 227.0);
Tailwind
colors: {
  custom: {
    50: '#73aac4',
    500: '#1f87ab',
    950: '#000000',
  },
}
SCSS
$custom: #1f87ab;
$custom-light: #73aac4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f87ab",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 171
  },
  "hsl": {
    "h": 195.429,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.58351,
    "c": 0.10411,
    "h": 227
  },
  "luminance": 0.2056
}

Semantic roles & 50–950 ramp

primary
#1F87AB
secondary
#C7795E
accent
#693CEC
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #1F87AB

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

Preview Lab → · Contrast checker → · Palette generator →

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