#1F8B2F#1F8B2F

#1F8B2F is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.8% C 0.161 H 145.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#1F8B2F
RGBrgb(31, 139, 47)
HSLhsl(129, 64%, 33%)
HSVhsv(129, 78%, 55%)
CMYKcmyk(77.7%, 0%, 66.2%, 45.5%)
CIE-LABlab(50.64, -48.79, 39.62)
CIE-LCHlch(50.64, 62.85, 140.92°)
OKLaboklab(55.84% -0.1317 0.0921)
OKLCHoklch(55.84% 0.161 145)
XYZxyz(10.3101, 18.9606, 5.8052)
Luminance0.1896 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B2F #8B1F7B
analogous
#458B1F #1F8B2F #1F8B65
triadic
#1F8B2F #2F1F8B #8B2F1F
tetradic
#1F8B2F #1F458B #8B1F7B #8B651F
square
#1F8B2F #1F458B #8B1F7B #8B651F
split-complementary
#1F8B2F #651F8B #8B1F45
monochromatic
#09270D #14591E #1F8B2F #2ABD40 #4DD762

Accessibility & contrast

On white

4.38
#1F8B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#1F8B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B2F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B2F#FFFFFF#000000##000000
##1F8B2F1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E24
Deuteranopia (green-blind)
#817537
Tritanopia (blue-blind)
#008778
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #1f8b2f;
/* rgb */ color: rgb(31, 139, 47);
/* oklch */ color: oklch(55.8% 0.161 145.0);
Tailwind
colors: {
  custom: {
    50: '#6eae6c',
    500: '#1f8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b2f;
$custom-light: #6eae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b2f",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 128.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55838,
    "c": 0.16071,
    "h": 145
  },
  "luminance": 0.18962
}

Semantic roles & 50–950 ramp

primary
#1F8B2F
secondary
#BA4CAA
accent
#41CEE7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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