#1F7D8B#1F7D8B

#1F7D8B is a mid, moderate teal. Relative luminance 0.168; OKLCH L 54.4% C 0.085 H 209.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#1F7D8B
RGBrgb(31, 125, 139)
HSLhsl(188, 64%, 33%)
HSVhsv(188, 78%, 55%)
CMYKcmyk(77.7%, 10.1%, 0%, 45.5%)
CIE-LABlab(48.03, -21.35, -15.26)
CIE-LCHlch(48.03, 26.24, 215.55°)
OKLaboklab(54.37% -0.074 -0.0425)
OKLCHoklch(54.37% 0.085 209.8)
XYZxyz(12.5569, 16.8211, 27.0061)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D8B #8B2D1F
analogous
#1F8B63 #1F7D8B #1F478B
triadic
#1F7D8B #8B1F7D #7D8B1F
tetradic
#1F7D8B #631F8B #8B2D1F #478B1F
square
#1F7D8B #631F8B #8B2D1F #478B1F
split-complementary
#1F7D8B #8B1F47 #8B631F
monochromatic
#092327 #145059 #1F7D8B #2AAABD #4DC5D7

Accessibility & contrast

On white

4.81
#1F7D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#1F7D8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D8B
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D8B#FFFFFF#000000##FFFFFF
##1F7D8B1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71788C
Deuteranopia (green-blind)
#626D8B
Tritanopia (blue-blind)
#008381
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f7d8b;
/* rgb */ color: rgb(31, 125, 139);
/* oklch */ color: oklch(54.4% 0.085 209.8);
Tailwind
colors: {
  custom: {
    50: '#6ea3ac',
    500: '#1f7d8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d8b;
$custom-light: #6ea3ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d8b",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 139
  },
  "hsl": {
    "h": 187.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54369,
    "c": 0.08536,
    "h": 209.8
  },
  "luminance": 0.16823
}

Semantic roles & 50–950 ramp

primary
#1F7D8B
secondary
#BA5A4C
accent
#5741E7
background
#F7FAFA
surface
#EDF3F4
border
#C8CDCE
text
#080F10
muted
#7B7F7F

Preview Lab

Preview with #1F7D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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