#1F8A3A#1F8A3A

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

Color values

HEX#1F8A3A
RGBrgb(31, 138, 58)
HSLhsl(135, 63%, 33%)
HSVhsv(135, 78%, 54%)
CMYKcmyk(77.5%, 0%, 58%, 45.9%)
CIE-LABlab(50.42, -47.02, 34.11)
CIE-LCHlch(50.42, 58.08, 144.04°)
OKLaboklab(55.69% -0.1265 0.0812)
OKLCHoklch(55.69% 0.15 147.3)
XYZxyz(10.4165, 18.7725, 7.0767)
Luminance0.1877 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A3A #8A1F6F
analogous
#398A1F #1F8A3A #1F8A6F
triadic
#1F8A3A #3A1F8A #8A3A1F
tetradic
#1F8A3A #1F398A #8A1F6F #8A6F1F
square
#1F8A3A #1F398A #8A1F6F #8A6F1F
split-complementary
#1F8A3A #6F1F8A #8A1F39
monochromatic
#092610 #145825 #1F8A3A #2ABC4F #4CD76F

Accessibility & contrast

On white

4.42
#1F8A3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#1F8A3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A3A
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A3A#FFFFFF#000000##000000
##1F8A3A1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f8a3a;
/* rgb */ color: rgb(31, 138, 58);
/* oklch */ color: oklch(55.7% 0.150 147.3);
Tailwind
colors: {
  custom: {
    50: '#6dad72',
    500: '#1f8a3a',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a3a;
$custom-light: #6dad72;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a3a",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 58
  },
  "hsl": {
    "h": 135.14,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55692,
    "c": 0.15035,
    "h": 147.3
  },
  "luminance": 0.18774
}

Semantic roles & 50–950 ramp

primary
#1F8A3A
secondary
#BA4B9E
accent
#41BDE6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F8A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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