#1F8B40#1F8B40

#1F8B40 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.146 H 148.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#1F8B40
RGBrgb(31, 139, 64)
HSLhsl(138, 64%, 33%)
HSVhsv(138, 78%, 55%)
CMYKcmyk(77.7%, 0%, 54%, 45.5%)
CIE-LABlab(50.83, -46.48, 31.55)
CIE-LCHlch(50.83, 56.18, 145.84°)
OKLaboklab(56.06% -0.1249 0.076)
OKLCHoklch(56.06% 0.146 148.7)
XYZxyz(10.7222, 19.1254, 7.9760)
Luminance0.1913 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B40 #8B1F6A
analogous
#348B1F #1F8B40 #1F8B76
triadic
#1F8B40 #401F8B #8B401F
tetradic
#1F8B40 #1F348B #8B1F6A #8B761F
square
#1F8B40 #1F348B #8B1F6A #8B761F
split-complementary
#1F8B40 #761F8B #8B1F34
monochromatic
#092712 #145929 #1F8B40 #2ABD57 #4DD777

Accessibility & contrast

On white

4.35
#1F8B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#1F8B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B40
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B40#FFFFFF#000000##000000
##1F8B401.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E39
Deuteranopia (green-blind)
#807646
Tritanopia (blue-blind)
#00887A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #1f8b40;
/* rgb */ color: rgb(31, 139, 64);
/* oklch */ color: oklch(56.1% 0.146 148.7);
Tailwind
colors: {
  custom: {
    50: '#6dae76',
    500: '#1f8b40',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b40;
$custom-light: #6dae76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b40",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 64
  },
  "hsl": {
    "h": 138.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5606,
    "c": 0.14625,
    "h": 148.7
  },
  "luminance": 0.19127
}

Semantic roles & 50–950 ramp

primary
#1F8B40
secondary
#BA4C98
accent
#41B4E7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #1F8B40

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

Preview Lab → · Contrast checker → · Palette generator →

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