#1F7986#1F7986

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

Color values

HEX#1F7986
RGBrgb(31, 121, 134)
HSLhsl(188, 62%, 32%)
HSVhsv(188, 77%, 53%)
CMYKcmyk(76.9%, 9.7%, 0%, 47.5%)
CIE-LABlab(46.56, -20.90, -14.54)
CIE-LCHlch(46.56, 25.46, 214.83°)
OKLaboklab(53.12% -0.0721 -0.0405)
OKLCHoklch(53.12% 0.083 209.3)
XYZxyz(11.7037, 15.6859, 24.9605)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7986 #862C1F
analogous
#1F8660 #1F7986 #1F4586
triadic
#1F7986 #861F79 #79861F
tetradic
#1F7986 #601F86 #862C1F #45861F
square
#1F7986 #601F86 #862C1F #45861F
split-complementary
#1F7986 #861F45 #86601F
monochromatic
#081F23 #144C54 #1F7986 #2AA6B8 #4AC4D5

Accessibility & contrast

On white

5.08
#1F7986 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7986
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7986#FFFFFF#000000##FFFFFF
##1F79861.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7986;
/* rgb */ color: rgb(31, 121, 134);
/* oklch */ color: oklch(53.1% 0.083 209.3);
Tailwind
colors: {
  custom: {
    50: '#6ca0a9',
    500: '#1f7986',
    950: '#000000',
  },
}
SCSS
$custom: #1f7986;
$custom-light: #6ca0a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7986",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 134
  },
  "hsl": {
    "h": 187.573,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53117,
    "c": 0.08266,
    "h": 209.3
  },
  "luminance": 0.15687
}

Semantic roles & 50–950 ramp

primary
#1F7986
secondary
#B85749
accent
#5742E5
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E0F
muted
#7B7E7F

Preview Lab

Preview with #1F7986

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

Preview Lab → · Contrast checker → · Palette generator →

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