#1F9840#1F9840

#1F9840 is a mid, vivid green. Relative luminance 0.231; OKLCH L 59.7% C 0.163 H 147.5°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#1F9840
RGBrgb(31, 152, 64)
HSLhsl(136, 66%, 36%)
HSVhsv(136, 80%, 60%)
CMYKcmyk(79.6%, 0%, 57.9%, 40.4%)
CIE-LABlab(55.19, -51.13, 36.80)
CIE-LCHlch(55.19, 62.99, 144.26°)
OKLaboklab(59.67% -0.1374 0.0876)
OKLCHoklch(59.67% 0.163 147.5)
XYZxyz(12.7177, 23.1164, 8.6411)
Luminance0.2312 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9840 #981F77
analogous
#3A981F #1F9840 #1F987C
triadic
#1F9840 #401F98 #98401F
tetradic
#1F9840 #1F3A98 #981F77 #987C1F
square
#1F9840 #1F3A98 #981F77 #987C1F
split-complementary
#1F9840 #7C1F98 #981F3A
monochromatic
#0A3215 #15652B #1F9840 #29CB55 #55DC7A

Accessibility & contrast

On white

3.73
#1F9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#1F9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9840
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9840#FFFFFF#000000##000000
##1F98401.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A37
Deuteranopia (green-blind)
#8C8047
Tritanopia (blue-blind)
#009585
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #1f9840;
/* rgb */ color: rgb(31, 152, 64);
/* oklch */ color: oklch(59.7% 0.163 147.5);
Tailwind
colors: {
  custom: {
    50: '#70b777',
    500: '#1f9840',
    950: '#000000',
  },
}
SCSS
$custom: #1f9840;
$custom-light: #70b777;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9840",
  "rgb": {
    "r": 31,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 136.364,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59672,
    "c": 0.16298,
    "h": 147.5
  },
  "luminance": 0.23118
}

Semantic roles & 50–950 ramp

primary
#1F9840
secondary
#C053A2
accent
#3FBBE9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #1F9840

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

Preview Lab → · Contrast checker → · Palette generator →

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