#1F8F2A#1F8F2A

#1F8F2A is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.169 H 144.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#1F8F2A
RGBrgb(31, 143, 42)
HSLhsl(126, 64%, 34%)
HSVhsv(126, 78%, 56%)
CMYKcmyk(78.3%, 0%, 70.6%, 43.9%)
CIE-LABlab(51.95, -50.69, 43.22)
CIE-LCHlch(51.95, 66.61, 139.54°)
OKLaboklab(56.91% -0.1371 0.0991)
OKLCHoklch(56.91% 0.169 144.1)
XYZxyz(10.8047, 20.1021, 5.5007)
Luminance0.2010 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F2A #8F1F84
analogous
#4C8F1F #1F8F2A #1F8F62
triadic
#1F8F2A #2A1F8F #8F2A1F
tetradic
#1F8F2A #1F4C8F #8F1F84 #8F621F
square
#1F8F2A #1F4C8F #8F1F84 #8F621F
split-complementary
#1F8F2A #621F8F #8F1F4C
monochromatic
#092A0C #145D1B #1F8F2A #2AC139 #4FD95D

Accessibility & contrast

On white

4.18
#1F8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#1F8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F2A
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F2A#FFFFFF#000000##000000
##1F8F2A1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811B
Deuteranopia (green-blind)
#857934
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f2a;
/* rgb */ color: rgb(31, 143, 42);
/* oklch */ color: oklch(56.9% 0.169 144.1);
Tailwind
colors: {
  custom: {
    50: '#6fb169',
    500: '#1f8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f2a;
$custom-light: #6fb169;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f2a",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 125.893,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56912,
    "c": 0.16917,
    "h": 144.1
  },
  "luminance": 0.20103
}

Semantic roles & 50–950 ramp

primary
#1F8F2A
secondary
#BC4EB1
accent
#40D7E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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