#1F862A#1F862A

#1F862A is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.4% C 0.158 H 144.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#1F862A
RGBrgb(31, 134, 42)
HSLhsl(126, 62%, 32%)
HSVhsv(126, 77%, 53%)
CMYKcmyk(76.9%, 0%, 68.7%, 47.5%)
CIE-LABlab(48.89, -47.61, 39.94)
CIE-LCHlch(48.89, 62.15, 140.01°)
OKLaboklab(54.37% -0.1287 0.0922)
OKLCHoklch(54.37% 0.158 144.4)
XYZxyz(9.5075, 17.5076, 5.0683)
Luminance0.1751 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F862A #861F7B
analogous
#47861F #1F862A #1F865E
triadic
#1F862A #2A1F86 #862A1F
tetradic
#1F862A #1F4786 #861F7B #865E1F
square
#1F862A #1F4786 #861F7B #865E1F
split-complementary
#1F862A #5E1F86 #861F47
monochromatic
#08230B #14541A #1F862A #2AB83A #4AD559

Accessibility & contrast

On white

4.66
#1F862A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#1F862A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F862A
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F862A#FFFFFF#000000##FFFFFF
##1F862A1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#89791E
Deuteranopia (green-blind)
#7D7133
Tritanopia (blue-blind)
#008273
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f862a;
/* rgb */ color: rgb(31, 134, 42);
/* oklch */ color: oklch(54.4% 0.158 144.4);
Tailwind
colors: {
  custom: {
    50: '#6daa68',
    500: '#1f862a',
    950: '#000000',
  },
}
SCSS
$custom: #1f862a;
$custom-light: #6daa68;
$custom-dark: #000000;
JSON
{
  "hex": "#1f862a",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 42
  },
  "hsl": {
    "h": 126.408,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54372,
    "c": 0.15834,
    "h": 144.4
  },
  "luminance": 0.17509
}

Semantic roles & 50–950 ramp

primary
#1F862A
secondary
#B849AC
accent
#42D4E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F862A

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

Preview Lab → · Contrast checker → · Palette generator →

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