#1F8B1C#1F8B1C

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

Color values

HEX#1F8B1C
RGBrgb(31, 139, 28)
HSLhsl(118, 66%, 33%)
HSVhsv(118, 80%, 55%)
CMYKcmyk(77.7%, 0%, 79.9%, 45.5%)
CIE-LABlab(50.50, -50.54, 47.04)
CIE-LCHlch(50.50, 69.04, 137.05°)
OKLaboklab(55.67% -0.1373 0.1052)
OKLCHoklch(55.67% 0.173 142.5)
XYZxyz(10.0067, 18.8392, 4.2073)
Luminance0.1884 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B1C #881C8B
analogous
#578B1C #1F8B1C #1C8B50
triadic
#1F8B1C #1C1F8B #8B1C1F
tetradic
#1F8B1C #1C578B #881C8B #8B501C
square
#1F8B1C #1C578B #881C8B #8B501C
split-complementary
#1F8B1C #501C8B #8B1C57
monochromatic
#082507 #145812 #1F8B1C #2ABE26 #4BDA47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8B1C#FFFFFF#000000##000000
##1F8B1C1.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)
#8E7D00
Deuteranopia (green-blind)
#827529
Tritanopia (blue-blind)
#008776
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b1c;
/* rgb */ color: rgb(31, 139, 28);
/* oklch */ color: oklch(55.7% 0.173 142.5);
Tailwind
colors: {
  custom: {
    50: '#6fae61',
    500: '#1f8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b1c;
$custom-light: #6fae61;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b1c",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 118.378,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.55674,
    "c": 0.173,
    "h": 142.5
  },
  "luminance": 0.1884
}

Semantic roles & 50–950 ramp

primary
#1F8B1C
secondary
#B947BC
accent
#3EE9E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #1F8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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