#1F7E8B#1F7E8B

#1F7E8B is a mid, moderate teal. Relative luminance 0.171; OKLCH L 54.6% C 0.086 H 208.7°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#1F7E8B
RGBrgb(31, 126, 139)
HSLhsl(187, 64%, 33%)
HSVhsv(187, 78%, 55%)
CMYKcmyk(77.7%, 9.4%, 0%, 45.5%)
CIE-LABlab(48.36, -21.88, -14.77)
CIE-LCHlch(48.36, 26.40, 214.02°)
OKLaboklab(54.63% -0.0751 -0.0411)
OKLCHoklch(54.63% 0.086 208.7)
XYZxyz(12.6841, 17.0756, 27.0485)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E8B #8B2C1F
analogous
#1F8B62 #1F7E8B #1F488B
triadic
#1F7E8B #8B1F7E #7E8B1F
tetradic
#1F7E8B #621F8B #8B2C1F #488B1F
square
#1F7E8B #621F8B #8B2C1F #488B1F
split-complementary
#1F7E8B #8B1F48 #8B621F
monochromatic
#092327 #145159 #1F7E8B #2AABBD #4DC7D7

Accessibility & contrast

On white

4.76
#1F7E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#1F7E8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E8B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E8B#FFFFFF#000000##FFFFFF
##1F7E8B1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72798C
Deuteranopia (green-blind)
#636E8B
Tritanopia (blue-blind)
#008482
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f7e8b;
/* rgb */ color: rgb(31, 126, 139);
/* oklch */ color: oklch(54.6% 0.086 208.7);
Tailwind
colors: {
  custom: {
    50: '#6ea3ac',
    500: '#1f7e8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e8b;
$custom-light: #6ea3ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e8b",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 139
  },
  "hsl": {
    "h": 187.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54628,
    "c": 0.08559,
    "h": 208.7
  },
  "luminance": 0.17077
}

Semantic roles & 50–950 ramp

primary
#1F7E8B
secondary
#BA594C
accent
#5541E7
background
#F7FAFA
surface
#EDF4F4
border
#C8CECE
text
#080F10
muted
#7B7F7F

Preview Lab

Preview with #1F7E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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