#1F8A42#1F8A42

#1F8A42 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.143 H 149.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#1F8A42
RGBrgb(31, 138, 66)
HSLhsl(140, 63%, 33%)
HSVhsv(140, 78%, 54%)
CMYKcmyk(77.5%, 0%, 52.2%, 45.9%)
CIE-LABlab(50.52, -45.79, 30.12)
CIE-LCHlch(50.52, 54.81, 146.66°)
OKLaboklab(55.81% -0.1231 0.0729)
OKLCHoklch(55.81% 0.143 149.4)
XYZxyz(10.6361, 18.8604, 8.2331)
Luminance0.1886 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A42 #8A1F67
analogous
#318A1F #1F8A42 #1F8A77
triadic
#1F8A42 #421F8A #8A421F
tetradic
#1F8A42 #1F318A #8A1F67 #8A771F
square
#1F8A42 #1F318A #8A1F67 #8A771F
split-complementary
#1F8A42 #771F8A #8A1F31
monochromatic
#092612 #14582A #1F8A42 #2ABC5A #4CD77A

Accessibility & contrast

On white

4.40
#1F8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#1F8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A42
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A42#FFFFFF#000000##000000
##1F8A421.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7D3C
Deuteranopia (green-blind)
#7F7547
Tritanopia (blue-blind)
#008779
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8a42;
/* rgb */ color: rgb(31, 138, 66);
/* oklch */ color: oklch(55.8% 0.143 149.4);
Tailwind
colors: {
  custom: {
    50: '#6dad78',
    500: '#1f8a42',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a42;
$custom-light: #6dad78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a42",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 139.626,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55812,
    "c": 0.14307,
    "h": 149.4
  },
  "luminance": 0.18862
}

Semantic roles & 50–950 ramp

primary
#1F8A42
secondary
#BA4B95
accent
#41B0E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #1F8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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