#1F7987#1F7987

#1F7987 is a mid, moderate teal. Relative luminance 0.157; OKLCH L 53.2% C 0.083 H 210.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#1F7987
RGBrgb(31, 121, 135)
HSLhsl(188, 63%, 33%)
HSVhsv(188, 77%, 53%)
CMYKcmyk(77%, 10.4%, 0%, 47.1%)
CIE-LABlab(46.60, -20.57, -15.08)
CIE-LCHlch(46.60, 25.50, 216.24°)
OKLaboklab(53.16% -0.0716 -0.042)
OKLCHoklch(53.16% 0.083 210.4)
XYZxyz(11.7737, 15.7139, 25.3295)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7987 #872D1F
analogous
#1F8761 #1F7987 #1F4587
triadic
#1F7987 #871F79 #79871F
tetradic
#1F7987 #611F87 #872D1F #45871F
square
#1F7987 #611F87 #872D1F #45871F
split-complementary
#1F7987 #871F45 #87611F
monochromatic
#082023 #144C55 #1F7987 #2AA6B9 #4BC3D6

Accessibility & contrast

On white

5.07
#1F7987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#1F7987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7987
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7987#FFFFFF#000000##FFFFFF
##1F79871.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D7488
Deuteranopia (green-blind)
#5F6A87
Tritanopia (blue-blind)
#007F7D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7987;
/* rgb */ color: rgb(31, 121, 135);
/* oklch */ color: oklch(53.2% 0.083 210.4);
Tailwind
colors: {
  custom: {
    50: '#6da0aa',
    500: '#1f7987',
    950: '#000000',
  },
}
SCSS
$custom: #1f7987;
$custom-light: #6da0aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7987",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 135
  },
  "hsl": {
    "h": 188.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.53159,
    "c": 0.08303,
    "h": 210.4
  },
  "luminance": 0.15715
}

Semantic roles & 50–950 ramp

primary
#1F7987
secondary
#B8584A
accent
#5842E6
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #1F7987

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

Preview Lab → · Contrast checker → · Palette generator →

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