#1F8B1A#1F8B1A

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

Color values

HEX#1F8B1A
RGBrgb(31, 139, 26)
HSLhsl(117, 68%, 32%)
HSVhsv(117, 81%, 55%)
CMYKcmyk(77.7%, 0%, 81.3%, 45.5%)
CIE-LABlab(50.49, -50.67, 47.68)
CIE-LCHlch(50.49, 69.58, 136.74°)
OKLaboklab(55.66% -0.1378 0.1063)
OKLCHoklch(55.66% 0.174 142.4)
XYZxyz(9.9835, 18.8300, 4.0855)
Luminance0.1883 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B1A #861A8B
analogous
#588B1A #1F8B1A #1A8B4D
triadic
#1F8B1A #1A1F8B #8B1A1F
tetradic
#1F8B1A #1A588B #861A8B #8B4D1A
square
#1F8B1A #1A588B #861A8B #8B4D1A
split-complementary
#1F8B1A #4D1A8B #8B1A58
monochromatic
#082407 #145710 #1F8B1A #2ABF24 #4ADC43

Accessibility & contrast

On white

4.41
#1F8B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8B1A#FFFFFF#000000##000000
##1F8B1A1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#827528
Tritanopia (blue-blind)
#008776
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b1a;
/* rgb */ color: rgb(31, 139, 26);
/* oklch */ color: oklch(55.7% 0.174 142.4);
Tailwind
colors: {
  custom: {
    50: '#6fae61',
    500: '#1f8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b1a;
$custom-light: #6fae61;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b1a",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 117.345,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.55661,
    "c": 0.17399,
    "h": 142.4
  },
  "luminance": 0.18831
}

Semantic roles & 50–950 ramp

primary
#1F8B1A
secondary
#B844BD
accent
#3CEBE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #1F8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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