#1F8A2C#1F8A2C

#1F8A2C is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.162 H 144.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#1F8A2C
RGBrgb(31, 138, 44)
HSLhsl(127, 63%, 33%)
HSVhsv(127, 78%, 54%)
CMYKcmyk(77.5%, 0%, 68.1%, 45.9%)
CIE-LABlab(50.27, -48.78, 40.56)
CIE-LCHlch(50.27, 63.44, 140.25°)
OKLaboklab(55.52% -0.1318 0.0938)
OKLCHoklch(55.52% 0.162 144.6)
XYZxyz(10.1075, 18.6489, 5.4493)
Luminance0.1865 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A2C #8A1F7D
analogous
#478A1F #1F8A2C #1F8A61
triadic
#1F8A2C #2C1F8A #8A2C1F
tetradic
#1F8A2C #1F478A #8A1F7D #8A611F
square
#1F8A2C #1F478A #8A1F7D #8A611F
split-complementary
#1F8A2C #611F8A #8A1F47
monochromatic
#09260C #14581C #1F8A2C #2ABC3C #4CD75D

Accessibility & contrast

On white

4.44
#1F8A2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#1F8A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A2C
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A2C#FFFFFF#000000##000000
##1F8A2C1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D20
Deuteranopia (green-blind)
#817435
Tritanopia (blue-blind)
#008677
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8a2c;
/* rgb */ color: rgb(31, 138, 44);
/* oklch */ color: oklch(55.5% 0.162 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ead6a',
    500: '#1f8a2c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a2c;
$custom-light: #6ead6a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a2c",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 127.29,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55524,
    "c": 0.16174,
    "h": 144.6
  },
  "luminance": 0.1865
}

Semantic roles & 50–950 ramp

primary
#1F8A2C
secondary
#BA4BAC
accent
#41D2E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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