#1F8D4A#1F8D4A

#1F8D4A is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.8% C 0.140 H 151.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#1F8D4A
RGBrgb(31, 141, 74)
HSLhsl(143, 64%, 34%)
HSVhsv(143, 78%, 55%)
CMYKcmyk(78%, 0%, 47.5%, 44.7%)
CIE-LABlab(51.65, -45.55, 27.29)
CIE-LCHlch(51.65, 53.10, 149.08°)
OKLaboklab(56.78% -0.1224 0.0669)
OKLCHoklch(56.78% 0.14 151.4)
XYZxyz(11.3250, 19.8341, 9.7087)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D4A #8D1F62
analogous
#2B8D1F #1F8D4A #1F8D81
triadic
#1F8D4A #4A1F8D #8D4A1F
tetradic
#1F8D4A #1F2B8D #8D1F62 #8D811F
square
#1F8D4A #1F2B8D #8D1F62 #8D811F
split-complementary
#1F8D4A #811F8D #8D1F2B
monochromatic
#092915 #145B30 #1F8D4A #2ABF64 #4ED884

Accessibility & contrast

On white

4.23
#1F8D4A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#1F8D4A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D4A
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D4A#FFFFFF#000000##000000
##1F8D4A1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D8145
Deuteranopia (green-blind)
#81784F
Tritanopia (blue-blind)
#008B7D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8d4a;
/* rgb */ color: rgb(31, 141, 74);
/* oklch */ color: oklch(56.8% 0.140 151.4);
Tailwind
colors: {
  custom: {
    50: '#6daf7d',
    500: '#1f8d4a',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d4a;
$custom-light: #6daf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d4a",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 74
  },
  "hsl": {
    "h": 143.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56781,
    "c": 0.13952,
    "h": 151.4
  },
  "luminance": 0.19835
}

Semantic roles & 50–950 ramp

primary
#1F8D4A
secondary
#BB4D90
accent
#41A6E7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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