#1F87A1#1F87A1

#1F87A1 is a mid, moderate cyan. Relative luminance 0.202; OKLCH L 57.9% C 0.097 H 219.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#1F87A1
RGBrgb(31, 135, 161)
HSLhsl(192, 68%, 38%)
HSVhsv(192, 81%, 63%)
CMYKcmyk(80.7%, 16.1%, 0%, 36.9%)
CIE-LABlab(52.05, -19.22, -21.96)
CIE-LCHlch(52.05, 29.19, 228.80°)
OKLaboklab(57.89% -0.0749 -0.0615)
OKLCHoklch(57.89% 0.097 219.4)
XYZxyz(15.6593, 20.1905, 36.7831)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F87A1 #A1391F
analogous
#1FA17A #1F87A1 #1F46A1
triadic
#1F87A1 #A11F87 #87A11F
tetradic
#1F87A1 #7A1FA1 #A1391F #46A11F
square
#1F87A1 #7A1FA1 #A1391F #46A11F
split-complementary
#1F87A1 #A11F46 #A17A1F
monochromatic
#0B313A #155C6E #1F87A1 #29B2D4 #5BC5DF

Accessibility & contrast

On white

4.17
#1F87A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#1F87A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F87A1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F87A1#FFFFFF#000000##000000
##1F87A11.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7783A2
Deuteranopia (green-blind)
#6677A1
Tritanopia (blue-blind)
#00908F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f87a1;
/* rgb */ color: rgb(31, 135, 161);
/* oklch */ color: oklch(57.9% 0.097 219.4);
Tailwind
colors: {
  custom: {
    50: '#72aabd',
    500: '#1f87a1',
    950: '#000000',
  },
}
SCSS
$custom: #1f87a1;
$custom-light: #72aabd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f87a1",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 161
  },
  "hsl": {
    "h": 192,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57886,
    "c": 0.09687,
    "h": 219.4
  },
  "luminance": 0.20192
}

Semantic roles & 50–950 ramp

primary
#1F87A1
secondary
#C46E58
accent
#603DEB
background
#F7FAFB
surface
#EDF4F6
border
#C8CED0
text
#091012
muted
#7B7F81

Preview Lab

Preview with #1F87A1

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

Preview Lab → · Contrast checker → · Palette generator →

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