#1F9740#1F9740

#1F9740 is a mid, vivid green. Relative luminance 0.228; OKLCH L 59.4% C 0.162 H 147.6°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#1F9740
RGBrgb(31, 151, 64)
HSLhsl(137, 66%, 36%)
HSVhsv(137, 79%, 59%)
CMYKcmyk(79.5%, 0%, 57.6%, 40.8%)
CIE-LABlab(54.86, -50.78, 36.40)
CIE-LCHlch(54.86, 62.48, 144.36°)
OKLaboklab(59.4% -0.1365 0.0867)
OKLCHoklch(59.4% 0.162 147.6)
XYZxyz(12.5561, 22.7932, 8.5873)
Luminance0.2280 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9740 #971F76
analogous
#3A971F #1F9740 #1F977C
triadic
#1F9740 #401F97 #97401F
tetradic
#1F9740 #1F3A97 #971F76 #977C1F
square
#1F9740 #1F3A97 #971F76 #977C1F
split-complementary
#1F9740 #7C1F97 #971F3A
monochromatic
#0A3115 #15642A #1F9740 #29CA56 #54DC7A

Accessibility & contrast

On white

3.78
#1F9740 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#1F9740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9740
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9740#FFFFFF#000000##000000
##1F97401.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#998938
Deuteranopia (green-blind)
#8B8047
Tritanopia (blue-blind)
#009484
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f9740;
/* rgb */ color: rgb(31, 151, 64);
/* oklch */ color: oklch(59.4% 0.162 147.6);
Tailwind
colors: {
  custom: {
    50: '#70b777',
    500: '#1f9740',
    950: '#000000',
  },
}
SCSS
$custom: #1f9740;
$custom-light: #70b777;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9740",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 64
  },
  "hsl": {
    "h": 136.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59395,
    "c": 0.16172,
    "h": 147.6
  },
  "luminance": 0.22795
}

Semantic roles & 50–950 ramp

primary
#1F9740
secondary
#BF52A1
accent
#3FBAE9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #1F9740

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

Preview Lab → · Contrast checker → · Palette generator →

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