#1F8B1D#1F8B1D

#1F8B1D is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.7% C 0.172 H 142.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#1F8B1D
RGBrgb(31, 139, 29)
HSLhsl(119, 65%, 33%)
HSVhsv(119, 79%, 55%)
CMYKcmyk(77.7%, 0%, 79.1%, 45.5%)
CIE-LABlab(50.50, -50.47, 46.71)
CIE-LCHlch(50.50, 68.76, 137.22°)
OKLaboklab(55.68% -0.1371 0.1047)
OKLCHoklch(55.68% 0.172 142.6)
XYZxyz(10.0188, 18.8441, 4.2714)
Luminance0.1885 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B1D #891D8B
analogous
#568B1D #1F8B1D #1D8B52
triadic
#1F8B1D #1D1F8B #8B1D1F
tetradic
#1F8B1D #1D568B #891D8B #8B521D
square
#1F8B1D #1D568B #891D8B #8B521D
split-complementary
#1F8B1D #521D8B #8B1D56
monochromatic
#082608 #145812 #1F8B1D #2ABE28 #4CD949

Accessibility & contrast

On white

4.40
#1F8B1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#1F8B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B1D
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B1D#FFFFFF#000000##000000
##1F8B1D1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D01
Deuteranopia (green-blind)
#82752A
Tritanopia (blue-blind)
#008776
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b1d;
/* rgb */ color: rgb(31, 139, 29);
/* oklch */ color: oklch(55.7% 0.172 142.6);
Tailwind
colors: {
  custom: {
    50: '#6fae62',
    500: '#1f8b1d',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b1d;
$custom-light: #6fae62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b1d",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 118.909,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5568,
    "c": 0.17247,
    "h": 142.6
  },
  "luminance": 0.18845
}

Semantic roles & 50–950 ramp

primary
#1F8B1D
secondary
#B949BB
accent
#3FE8E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #1F8B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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