#1F787A#1F787A

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

Color values

HEX#1F787A
RGBrgb(31, 120, 122)
HSLhsl(181, 59%, 30%)
HSVhsv(181, 75%, 48%)
CMYKcmyk(74.6%, 1.6%, 0%, 52.2%)
CIE-LABlab(45.81, -24.30, -8.54)
CIE-LCHlch(45.81, 25.75, 199.37°)
OKLaboklab(52.37% -0.0765 -0.0237)
OKLCHoklch(52.37% 0.08 197.2)
XYZxyz(10.7928, 15.1281, 20.7598)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F787A #7A211F
analogous
#1F7A4F #1F787A #1F4A7A
triadic
#1F787A #7A1F78 #787A1F
tetradic
#1F787A #4F1F7A #7A211F #4A7A1F
square
#1F787A #4F1F7A #7A211F #4A7A1F
split-complementary
#1F787A #7A1F4A #7A4F1F
monochromatic
#061818 #134849 #1F787A #2BA8AB #44CCCF

Accessibility & contrast

On white

5.22
#1F787A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F787A
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F787A#FFFFFF#000000##FFFFFF
##1F787A1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F727A
Deuteranopia (green-blind)
#62687B
Tritanopia (blue-blind)
#007C78
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f787a;
/* rgb */ color: rgb(31, 120, 122);
/* oklch */ color: oklch(52.4% 0.080 197.2);
Tailwind
colors: {
  custom: {
    50: '#6b9fa0',
    500: '#1f787a',
    950: '#000000',
  },
}
SCSS
$custom: #1f787a;
$custom-light: #6b9fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f787a",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 122
  },
  "hsl": {
    "h": 181.319,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.52369,
    "c": 0.08008,
    "h": 197.2
  },
  "luminance": 0.15129
}

Semantic roles & 50–950 ramp

primary
#1F787A
secondary
#AD4A47
accent
#4945E3
background
#F6F9F9
surface
#ECF2F2
border
#C7CCCC
text
#080E0E
muted
#7A7E7E

Preview Lab

Preview with #1F787A

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

Preview Lab → · Contrast checker → · Palette generator →

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