#1F7952#1F7952

#1F7952 is a mid, moderate teal. Relative luminance 0.146; OKLCH L 51.4% C 0.104 H 160.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#1F7952
RGBrgb(31, 121, 82)
HSLhsl(154, 59%, 30%)
HSVhsv(154, 74%, 47%)
CMYKcmyk(74.4%, 0%, 32.2%, 52.5%)
CIE-LABlab(45.05, -35.87, 14.05)
CIE-LCHlch(45.05, 38.52, 158.61°)
OKLaboklab(51.38% -0.0977 0.0356)
OKLCHoklch(51.38% 0.104 160)
XYZxyz(8.9245, 14.5742, 10.3238)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7952 #791F46
analogous
#1F7925 #1F7952 #1F7379
triadic
#1F7952 #521F79 #79521F
tetradic
#1F7952 #251F79 #791F46 #73791F
square
#1F7952 #251F79 #791F46 #73791F
split-complementary
#1F7952 #791F73 #79251F
monochromatic
#061811 #134831 #1F7952 #2BAA73 #43CF93

Accessibility & contrast

On white

5.36
#1F7952 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#1F7952 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7952
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7952#FFFFFF#000000##FFFFFF
##1F79521.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776F50
Deuteranopia (green-blind)
#6C6755
Tritanopia (blue-blind)
#00786F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7952;
/* rgb */ color: rgb(31, 121, 82);
/* oklch */ color: oklch(51.4% 0.104 160.0);
Tailwind
colors: {
  custom: {
    50: '#68a082',
    500: '#1f7952',
    950: '#000000',
  },
}
SCSS
$custom: #1f7952;
$custom-light: #68a082;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7952",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 82
  },
  "hsl": {
    "h": 154,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51382,
    "c": 0.10395,
    "h": 160
  },
  "luminance": 0.14575
}

Semantic roles & 50–950 ramp

primary
#1F7952
secondary
#AC4773
accent
#4589E2
background
#F6F9F8
surface
#EBF2EF
border
#C6CCCA
text
#070F0A
muted
#7A7E7C

Preview Lab

Preview with #1F7952

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

Preview Lab → · Contrast checker → · Palette generator →

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