#1F8E2A#1F8E2A

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

Color values

HEX#1F8E2A
RGBrgb(31, 142, 42)
HSLhsl(126, 64%, 34%)
HSVhsv(126, 78%, 56%)
CMYKcmyk(78.2%, 0%, 70.4%, 44.3%)
CIE-LABlab(51.61, -50.35, 42.86)
CIE-LCHlch(51.61, 66.12, 139.59°)
OKLaboklab(56.63% -0.1361 0.0984)
OKLCHoklch(56.63% 0.168 144.1)
XYZxyz(10.6553, 19.8032, 5.4509)
Luminance0.1980 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E2A #8E1F83
analogous
#4C8E1F #1F8E2A #1F8E62
triadic
#1F8E2A #2A1F8E #8E2A1F
tetradic
#1F8E2A #1F4C8E #8E1F83 #8E621F
square
#1F8E2A #1F4C8E #8E1F83 #8E621F
split-complementary
#1F8E2A #621F8E #8E1F4C
monochromatic
#092A0C #145C1B #1F8E2A #2AC039 #4FD95D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8E2A#FFFFFF#000000##000000
##1F8E2A1.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)
#91801C
Deuteranopia (green-blind)
#847834
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e2a;
/* rgb */ color: rgb(31, 142, 42);
/* oklch */ color: oklch(56.6% 0.168 144.1);
Tailwind
colors: {
  custom: {
    50: '#6fb069',
    500: '#1f8e2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e2a;
$custom-light: #6fb069;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e2a",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 125.946,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56631,
    "c": 0.16797,
    "h": 144.1
  },
  "luminance": 0.19804
}

Semantic roles & 50–950 ramp

primary
#1F8E2A
secondary
#BB4DB1
accent
#41D7E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A

Preview Lab

Preview with #1F8E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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