#1F8E2D#1F8E2D

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

Color values

HEX#1F8E2D
RGBrgb(31, 142, 45)
HSLhsl(128, 64%, 34%)
HSVhsv(128, 78%, 56%)
CMYKcmyk(78.2%, 0%, 68.3%, 44.3%)
CIE-LABlab(51.64, -50.04, 41.61)
CIE-LCHlch(51.64, 65.08, 140.26°)
OKLaboklab(56.66% -0.1352 0.0961)
OKLCHoklch(56.66% 0.166 144.6)
XYZxyz(10.7110, 19.8255, 5.7443)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E2D #8E1F80
analogous
#498E1F #1F8E2D #1F8E65
triadic
#1F8E2D #2D1F8E #8E2D1F
tetradic
#1F8E2D #1F498E #8E1F80 #8E651F
square
#1F8E2D #1F498E #8E1F80 #8E651F
split-complementary
#1F8E2D #651F8E #8E1F49
monochromatic
#092A0D #145C1D #1F8E2D #2AC03D #4FD960

Accessibility & contrast

On white

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

On black

4.97
#1F8E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E2D
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E2D#FFFFFF#000000##000000
##1F8E2D1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918020
Deuteranopia (green-blind)
#847836
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e2d;
/* rgb */ color: rgb(31, 142, 45);
/* oklch */ color: oklch(56.7% 0.166 144.6);
Tailwind
colors: {
  custom: {
    50: '#6fb06b',
    500: '#1f8e2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e2d;
$custom-light: #6fb06b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e2d",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 127.568,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.5666,
    "c": 0.16584,
    "h": 144.6
  },
  "luminance": 0.19827
}

Semantic roles & 50–950 ramp

primary
#1F8E2D
secondary
#BB4DAE
accent
#41D2E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A

Preview Lab

Preview with #1F8E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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