#1F9940#1F9940

#1F9940 is a mid, vivid green. Relative luminance 0.234; OKLCH L 59.9% C 0.164 H 147.4°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#1F9940
RGBrgb(31, 153, 64)
HSLhsl(136, 66%, 36%)
HSVhsv(136, 80%, 60%)
CMYKcmyk(79.7%, 0%, 58.2%, 40%)
CIE-LABlab(55.53, -51.47, 37.19)
CIE-LCHlch(55.53, 63.50, 144.15°)
OKLaboklab(59.95% -0.1384 0.0884)
OKLCHoklch(59.95% 0.164 147.4)
XYZxyz(12.8807, 23.4424, 8.6955)
Luminance0.2344 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9940 #991F78
analogous
#3B991F #1F9940 #1F997D
triadic
#1F9940 #401F99 #99401F
tetradic
#1F9940 #1F3B99 #991F78 #997D1F
square
#1F9940 #1F3B99 #991F78 #997D1F
split-complementary
#1F9940 #7D1F99 #991F3B
monochromatic
#0A3315 #15662B #1F9940 #29CC55 #56DD7A

Accessibility & contrast

On white

3.69
#1F9940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#1F9940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9940
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9940#FFFFFF#000000##000000
##1F99401.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8B37
Deuteranopia (green-blind)
#8D8147
Tritanopia (blue-blind)
#009685
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #1f9940;
/* rgb */ color: rgb(31, 153, 64);
/* oklch */ color: oklch(59.9% 0.164 147.4);
Tailwind
colors: {
  custom: {
    50: '#71b877',
    500: '#1f9940',
    950: '#000000',
  },
}
SCSS
$custom: #1f9940;
$custom-light: #71b877;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9940",
  "rgb": {
    "r": 31,
    "g": 153,
    "b": 64
  },
  "hsl": {
    "h": 136.23,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59948,
    "c": 0.16423,
    "h": 147.4
  },
  "luminance": 0.23444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F9940

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

Preview Lab → · Contrast checker → · Palette generator →

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