#1F8840#1F8840

#1F8840 is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.2% C 0.142 H 149.0°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#1F8840
RGBrgb(31, 136, 64)
HSLhsl(139, 63%, 33%)
HSVhsv(139, 77%, 53%)
CMYKcmyk(77.2%, 0%, 52.9%, 46.7%)
CIE-LABlab(49.82, -45.38, 30.30)
CIE-LCHlch(49.82, 54.56, 146.26°)
OKLaboklab(55.22% -0.122 0.0732)
OKLCHoklch(55.22% 0.142 149)
XYZxyz(10.2938, 18.2686, 7.8332)
Luminance0.1827 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8840 #881F67
analogous
#33881F #1F8840 #1F8874
triadic
#1F8840 #401F88 #88401F
tetradic
#1F8840 #1F3388 #881F67 #88741F
square
#1F8840 #1F3388 #881F67 #88741F
split-complementary
#1F8840 #741F88 #881F33
monochromatic
#082411 #145629 #1F8840 #2ABA57 #4BD677

Accessibility & contrast

On white

4.51
#1F8840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#1F8840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8840
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8840#FFFFFF#000000##000000
##1F88401.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897C3A
Deuteranopia (green-blind)
#7D7345
Tritanopia (blue-blind)
#008577
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f8840;
/* rgb */ color: rgb(31, 136, 64);
/* oklch */ color: oklch(55.2% 0.142 149.0);
Tailwind
colors: {
  custom: {
    50: '#6cac76',
    500: '#1f8840',
    950: '#000000',
  },
}
SCSS
$custom: #1f8840;
$custom-light: #6cac76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8840",
  "rgb": {
    "r": 31,
    "g": 136,
    "b": 64
  },
  "hsl": {
    "h": 138.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.55221,
    "c": 0.14228,
    "h": 149
  },
  "luminance": 0.1827
}

Semantic roles & 50–950 ramp

primary
#1F8840
secondary
#B94A96
accent
#42B2E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F8840

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

Preview Lab → · Contrast checker → · Palette generator →

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