#1F87A5#1F87A5

#1F87A5 is a mid, moderate cyan. Relative luminance 0.203; OKLCH L 58.1% C 0.100 H 222.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#1F87A5
RGBrgb(31, 135, 165)
HSLhsl(193, 68%, 38%)
HSVhsv(193, 81%, 65%)
CMYKcmyk(81.2%, 18.2%, 0%, 35.3%)
CIE-LABlab(52.21, -17.84, -24.03)
CIE-LCHlch(52.21, 29.93, 233.40°)
OKLaboklab(58.07% -0.0733 -0.0674)
OKLCHoklch(58.07% 0.1 222.6)
XYZxyz(16.0177, 20.3339, 38.6706)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F87A5 #A53D1F
analogous
#1FA580 #1F87A5 #1F44A5
triadic
#1F87A5 #A51F87 #87A51F
tetradic
#1F87A5 #801FA5 #A53D1F #44A51F
square
#1F87A5 #801FA5 #A53D1F #44A51F
split-complementary
#1F87A5 #A51F44 #A5801F
monochromatic
#0C333E #155D71 #1F87A5 #2AB0D7 #5EC3E1

Accessibility & contrast

On white

4.14
#1F87A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#1F87A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F87A5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F87A5#FFFFFF#000000##000000
##1F87A51.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7684A7
Deuteranopia (green-blind)
#6477A5
Tritanopia (blue-blind)
#009091
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f87a5;
/* rgb */ color: rgb(31, 135, 165);
/* oklch */ color: oklch(58.1% 0.100 222.6);
Tailwind
colors: {
  custom: {
    50: '#72aabf',
    500: '#1f87a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f87a5;
$custom-light: #72aabf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f87a5",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 165
  },
  "hsl": {
    "h": 193.433,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.58069,
    "c": 0.09953,
    "h": 222.6
  },
  "luminance": 0.20336
}

Semantic roles & 50–950 ramp

primary
#1F87A5
secondary
#C5735B
accent
#643DEB
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#091012
muted
#7B7F81

Preview Lab

Preview with #1F87A5

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

Preview Lab → · Contrast checker → · Palette generator →

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