#1F8B2C#1F8B2C

#1F8B2C is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.163 H 144.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#1F8B2C
RGBrgb(31, 139, 44)
HSLhsl(127, 64%, 33%)
HSVhsv(127, 78%, 55%)
CMYKcmyk(77.7%, 0%, 68.3%, 45.5%)
CIE-LABlab(50.61, -49.12, 40.93)
CIE-LCHlch(50.61, 63.94, 140.20°)
OKLaboklab(55.81% -0.1327 0.0946)
OKLCHoklch(55.81% 0.163 144.5)
XYZxyz(10.2516, 18.9372, 5.4973)
Luminance0.1894 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B2C #8B1F7E
analogous
#488B1F #1F8B2C #1F8B62
triadic
#1F8B2C #2C1F8B #8B2C1F
tetradic
#1F8B2C #1F488B #8B1F7E #8B621F
square
#1F8B2C #1F488B #8B1F7E #8B621F
split-complementary
#1F8B2C #621F8B #8B1F48
monochromatic
#09270C #14591C #1F8B2C #2ABD3C #4DD75E

Accessibility & contrast

On white

4.39
#1F8B2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#1F8B2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B2C
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B2C#FFFFFF#000000##000000
##1F8B2C1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1F
Deuteranopia (green-blind)
#827535
Tritanopia (blue-blind)
#008778
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b2c;
/* rgb */ color: rgb(31, 139, 44);
/* oklch */ color: oklch(55.8% 0.163 144.5);
Tailwind
colors: {
  custom: {
    50: '#6eae6a',
    500: '#1f8b2c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b2c;
$custom-light: #6eae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b2c",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 44
  },
  "hsl": {
    "h": 127.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55806,
    "c": 0.16295,
    "h": 144.5
  },
  "luminance": 0.18938
}

Semantic roles & 50–950 ramp

primary
#1F8B2C
secondary
#BA4CAD
accent
#41D3E7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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