#1F8D2D#1F8D2D

#1F8D2D is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.165 H 144.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#1F8D2D
RGBrgb(31, 141, 45)
HSLhsl(128, 64%, 34%)
HSVhsv(128, 78%, 55%)
CMYKcmyk(78%, 0%, 68.1%, 44.7%)
CIE-LABlab(51.30, -49.70, 41.24)
CIE-LCHlch(51.30, 64.58, 140.31°)
OKLaboklab(56.38% -0.1342 0.0953)
OKLCHoklch(56.38% 0.165 144.6)
XYZxyz(10.5629, 19.5293, 5.6950)
Luminance0.1953 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D2D #8D1F7F
analogous
#488D1F #1F8D2D #1F8D64
triadic
#1F8D2D #2D1F8D #8D2D1F
tetradic
#1F8D2D #1F488D #8D1F7F #8D641F
square
#1F8D2D #1F488D #8D1F7F #8D641F
split-complementary
#1F8D2D #641F8D #8D1F48
monochromatic
#09290D #145B1D #1F8D2D #2ABF3D #4ED860

Accessibility & contrast

On white

4.28
#1F8D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#1F8D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D2D
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D2D#FFFFFF#000000##000000
##1F8D2D1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F20
Deuteranopia (green-blind)
#837736
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d2d;
/* rgb */ color: rgb(31, 141, 45);
/* oklch */ color: oklch(56.4% 0.165 144.6);
Tailwind
colors: {
  custom: {
    50: '#6eaf6b',
    500: '#1f8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d2d;
$custom-light: #6eaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d2d",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 127.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56379,
    "c": 0.16465,
    "h": 144.6
  },
  "luminance": 0.19531
}

Semantic roles & 50–950 ramp

primary
#1F8D2D
secondary
#BB4DAD
accent
#41D2E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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