#1F8E2C#1F8E2C

#1F8E2C is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.167 H 144.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#1F8E2C
RGBrgb(31, 142, 44)
HSLhsl(127, 64%, 34%)
HSVhsv(127, 78%, 56%)
CMYKcmyk(78.2%, 0%, 69%, 44.3%)
CIE-LABlab(51.63, -50.15, 42.03)
CIE-LCHlch(51.63, 65.43, 140.03°)
OKLaboklab(56.65% -0.1355 0.0969)
OKLCHoklch(56.65% 0.167 144.4)
XYZxyz(10.6920, 19.8179, 5.6441)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E2C #8E1F81
analogous
#4A8E1F #1F8E2C #1F8E64
triadic
#1F8E2C #2C1F8E #8E2C1F
tetradic
#1F8E2C #1F4A8E #8E1F81 #8E641F
square
#1F8E2C #1F4A8E #8E1F81 #8E641F
split-complementary
#1F8E2C #641F8E #8E1F4A
monochromatic
#092A0D #145C1C #1F8E2C #2AC03C #4FD95F

Accessibility & contrast

On white

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

On black

4.96
#1F8E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E2C
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E2C#FFFFFF#000000##000000
##1F8E2C1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801F
Deuteranopia (green-blind)
#847835
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e2c;
/* rgb */ color: rgb(31, 142, 44);
/* oklch */ color: oklch(56.7% 0.167 144.4);
Tailwind
colors: {
  custom: {
    50: '#6fb06a',
    500: '#1f8e2c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e2c;
$custom-light: #6fb06a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e2c",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 44
  },
  "hsl": {
    "h": 127.027,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56651,
    "c": 0.16657,
    "h": 144.4
  },
  "luminance": 0.19819
}

Semantic roles & 50–950 ramp

primary
#1F8E2C
secondary
#BB4DAF
accent
#41D4E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A

Preview Lab

Preview with #1F8E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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