#1F787B#1F787B

#1F787B is a mid, moderate teal. Relative luminance 0.152; OKLCH L 52.4% C 0.080 H 198.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#1F787B
RGBrgb(31, 120, 123)
HSLhsl(182, 60%, 30%)
HSVhsv(182, 75%, 48%)
CMYKcmyk(74.8%, 2.4%, 0%, 51.8%)
CIE-LABlab(45.84, -23.98, -9.09)
CIE-LCHlch(45.84, 25.64, 200.76°)
OKLaboklab(52.41% -0.076 -0.0252)
OKLCHoklch(52.41% 0.08 198.4)
XYZxyz(10.8551, 15.1530, 21.0878)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F787B #7B221F
analogous
#1F7B50 #1F787B #1F4A7B
triadic
#1F787B #7B1F78 #787B1F
tetradic
#1F787B #501F7B #7B221F #4A7B1F
square
#1F787B #501F7B #7B221F #4A7B1F
split-complementary
#1F787B #7B1F4A #7B501F
monochromatic
#061919 #13484A #1F787B #2BA8AC #44CBD0

Accessibility & contrast

On white

5.21
#1F787B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#1F787B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F787B
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F787B#FFFFFF#000000##FFFFFF
##1F787B1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F727B
Deuteranopia (green-blind)
#62687C
Tritanopia (blue-blind)
#007C79
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f787b;
/* rgb */ color: rgb(31, 120, 123);
/* oklch */ color: oklch(52.4% 0.080 198.4);
Tailwind
colors: {
  custom: {
    50: '#6b9fa1',
    500: '#1f787b',
    950: '#000000',
  },
}
SCSS
$custom: #1f787b;
$custom-light: #6b9fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f787b",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 123
  },
  "hsl": {
    "h": 181.957,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52407,
    "c": 0.08009,
    "h": 198.4
  },
  "luminance": 0.15154
}

Semantic roles & 50–950 ramp

primary
#1F787B
secondary
#AE4B48
accent
#4A45E3
background
#F6F9F9
surface
#ECF2F2
border
#C7CCCC
text
#080E0E
muted
#7A7E7E

Preview Lab

Preview with #1F787B

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

Preview Lab → · Contrast checker → · Palette generator →

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