#1F8D2C#1F8D2C

#1F8D2C is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.165 H 144.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#1F8D2C
RGBrgb(31, 141, 44)
HSLhsl(127, 64%, 34%)
HSVhsv(127, 78%, 55%)
CMYKcmyk(78%, 0%, 68.8%, 44.7%)
CIE-LABlab(51.29, -49.81, 41.67)
CIE-LCHlch(51.29, 64.94, 140.08°)
OKLaboklab(56.37% -0.1346 0.0961)
OKLCHoklch(56.37% 0.165 144.5)
XYZxyz(10.5439, 19.5217, 5.5948)
Luminance0.1952 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D2C #8D1F80
analogous
#498D1F #1F8D2C #1F8D63
triadic
#1F8D2C #2C1F8D #8D2C1F
tetradic
#1F8D2C #1F498D #8D1F80 #8D631F
square
#1F8D2C #1F498D #8D1F80 #8D631F
split-complementary
#1F8D2C #631F8D #8D1F49
monochromatic
#09290D #145B1C #1F8D2C #2ABF3C #4ED85F

Accessibility & contrast

On white

4.28
#1F8D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#1F8D2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D2C
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D2C#FFFFFF#000000##000000
##1F8D2C1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F1F
Deuteranopia (green-blind)
#837735
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d2c;
/* rgb */ color: rgb(31, 141, 44);
/* oklch */ color: oklch(56.4% 0.165 144.5);
Tailwind
colors: {
  custom: {
    50: '#6eaf6a',
    500: '#1f8d2c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d2c;
$custom-light: #6eaf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d2c",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 127.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56369,
    "c": 0.16537,
    "h": 144.5
  },
  "luminance": 0.19523
}

Semantic roles & 50–950 ramp

primary
#1F8D2C
secondary
#BB4DAE
accent
#41D3E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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