#1F7958#1F7958

#1F7958 is a mid, moderate teal. Relative luminance 0.147; OKLCH L 51.5% C 0.098 H 163.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#1F7958
RGBrgb(31, 121, 88)
HSLhsl(158, 59%, 30%)
HSVhsv(158, 74%, 47%)
CMYKcmyk(74.4%, 0%, 27.3%, 52.5%)
CIE-LABlab(45.18, -34.44, 10.72)
CIE-LCHlch(45.18, 36.07, 162.70°)
OKLaboklab(51.54% -0.0946 0.0274)
OKLCHoklch(51.54% 0.098 163.9)
XYZxyz(9.1629, 14.6696, 11.5792)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7958 #791F40
analogous
#1F792B #1F7958 #1F6D79
triadic
#1F7958 #581F79 #79581F
tetradic
#1F7958 #2B1F79 #791F40 #6D791F
square
#1F7958 #2B1F79 #791F40 #6D791F
split-complementary
#1F7958 #791F6D #792B1F
monochromatic
#061812 #134835 #1F7958 #2BAA7B #43CF9C

Accessibility & contrast

On white

5.34
#1F7958 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#1F7958 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7958
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7958#FFFFFF#000000##FFFFFF
##1F79581.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#777056
Deuteranopia (green-blind)
#6B685A
Tritanopia (blue-blind)
#007970
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7958;
/* rgb */ color: rgb(31, 121, 88);
/* oklch */ color: oklch(51.5% 0.098 163.9);
Tailwind
colors: {
  custom: {
    50: '#69a087',
    500: '#1f7958',
    950: '#000000',
  },
}
SCSS
$custom: #1f7958;
$custom-light: #69a087;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7958",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 88
  },
  "hsl": {
    "h": 158,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51535,
    "c": 0.09846,
    "h": 163.9
  },
  "luminance": 0.14671
}

Semantic roles & 50–950 ramp

primary
#1F7958
secondary
#AC476C
accent
#457FE2
background
#F6F9F8
surface
#EBF2EF
border
#C6CCCA
text
#070F0B
muted
#7A7E7C

Preview Lab

Preview with #1F7958

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

Preview Lab → · Contrast checker → · Palette generator →

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