#1F891D#1F891D

#1F891D is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.1% C 0.170 H 142.6°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#1F891D
RGBrgb(31, 137, 29)
HSLhsl(119, 65%, 33%)
HSVhsv(119, 79%, 54%)
CMYKcmyk(77.4%, 0%, 78.8%, 46.3%)
CIE-LABlab(49.82, -49.80, 46.04)
CIE-LCHlch(49.82, 67.82, 137.25°)
OKLaboklab(55.11% -0.1353 0.1033)
OKLCHoklch(55.11% 0.17 142.6)
XYZxyz(9.7319, 18.2702, 4.1758)
Luminance0.1827 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F891D #871D89
analogous
#55891D #1F891D #1D8951
triadic
#1F891D #1D1F89 #891D1F
tetradic
#1F891D #1D5589 #871D89 #89511D
square
#1F891D #1D5589 #871D89 #89511D
split-complementary
#1F891D #511D89 #891D55
monochromatic
#082408 #145612 #1F891D #2ABC28 #4BD848

Accessibility & contrast

On white

4.51
#1F891D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#1F891D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F891D
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F891D#FFFFFF#000000##000000
##1F891D1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B03
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#008575
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f891d;
/* rgb */ color: rgb(31, 137, 29);
/* oklch */ color: oklch(55.1% 0.170 142.6);
Tailwind
colors: {
  custom: {
    50: '#6eac62',
    500: '#1f891d',
    950: '#000000',
  },
}
SCSS
$custom: #1f891d;
$custom-light: #6eac62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f891d",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 29
  },
  "hsl": {
    "h": 118.889,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55113,
    "c": 0.1702,
    "h": 142.6
  },
  "luminance": 0.18271
}

Semantic roles & 50–950 ramp

primary
#1F891D
secondary
#B847BA
accent
#40E8E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F891D

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

Preview Lab → · Contrast checker → · Palette generator →

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