#1F862F#1F862F

#1F862F is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.4% C 0.155 H 145.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#1F862F
RGBrgb(31, 134, 47)
HSLhsl(129, 62%, 32%)
HSVhsv(129, 77%, 53%)
CMYKcmyk(76.9%, 0%, 64.9%, 47.5%)
CIE-LABlab(48.94, -47.04, 37.73)
CIE-LCHlch(48.94, 60.30, 141.27°)
OKLaboklab(54.43% -0.1269 0.0881)
OKLCHoklch(54.43% 0.155 145.2)
XYZxyz(9.6026, 17.5456, 5.5693)
Luminance0.1755 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F862F #861F76
analogous
#43861F #1F862F #1F8662
triadic
#1F862F #2F1F86 #862F1F
tetradic
#1F862F #1F4386 #861F76 #86621F
square
#1F862F #1F4386 #861F76 #86621F
split-complementary
#1F862F #621F86 #861F43
monochromatic
#08230C #14541E #1F862F #2AB840 #4AD560

Accessibility & contrast

On white

4.66
#1F862F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#1F862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F862F
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F862F#FFFFFF#000000##FFFFFF
##1F862F1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887925
Deuteranopia (green-blind)
#7D7137
Tritanopia (blue-blind)
#008274
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f862f;
/* rgb */ color: rgb(31, 134, 47);
/* oklch */ color: oklch(54.4% 0.155 145.2);
Tailwind
colors: {
  custom: {
    50: '#6caa6b',
    500: '#1f862f',
    950: '#000000',
  },
}
SCSS
$custom: #1f862f;
$custom-light: #6caa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f862f",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 129.32,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54426,
    "c": 0.15451,
    "h": 145.2
  },
  "luminance": 0.17547
}

Semantic roles & 50–950 ramp

primary
#1F862F
secondary
#B849A7
accent
#42CCE5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F862F

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

Preview Lab → · Contrast checker → · Palette generator →

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