#1F787F#1F787F

#1F787F is a mid, moderate teal. Relative luminance 0.153; OKLCH L 52.6% C 0.080 H 202.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#1F787F
RGBrgb(31, 120, 127)
HSLhsl(184, 61%, 31%)
HSVhsv(184, 76%, 50%)
CMYKcmyk(75.6%, 5.5%, 0%, 50.2%)
CIE-LABlab(45.98, -22.69, -11.26)
CIE-LCHlch(45.98, 25.33, 206.40°)
OKLaboklab(52.57% -0.0742 -0.0313)
OKLCHoklch(52.57% 0.08 202.9)
XYZxyz(11.1106, 15.2552, 22.4335)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F787F #7F261F
analogous
#1F7F56 #1F787F #1F487F
triadic
#1F787F #7F1F78 #787F1F
tetradic
#1F787F #561F7F #7F261F #487F1F
square
#1F787F #561F7F #7F261F #487F1F
split-complementary
#1F787F #7F1F48 #7F561F
monochromatic
#071B1D #134A4E #1F787F #2BA6B0 #46C8D2

Accessibility & contrast

On white

5.18
#1F787F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#1F787F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F787F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F787F#FFFFFF#000000##FFFFFF
##1F787F1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E7380
Deuteranopia (green-blind)
#61697F
Tritanopia (blue-blind)
#007D7A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f787f;
/* rgb */ color: rgb(31, 120, 127);
/* oklch */ color: oklch(52.6% 0.080 202.9);
Tailwind
colors: {
  custom: {
    50: '#6b9fa4',
    500: '#1f787f',
    950: '#000000',
  },
}
SCSS
$custom: #1f787f;
$custom-light: #6b9fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f787f",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 184.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52566,
    "c": 0.08049,
    "h": 202.9
  },
  "luminance": 0.15257
}

Semantic roles & 50–950 ramp

primary
#1F787F
secondary
#B25048
accent
#5044E4
background
#F6F9FA
surface
#ECF2F4
border
#C7CCCE
text
#080E0F
muted
#7A7E7F

Preview Lab

Preview with #1F787F

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

Preview Lab → · Contrast checker → · Palette generator →

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