#1F862B#1F862B

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

Color values

HEX#1F862B
RGBrgb(31, 134, 43)
HSLhsl(127, 62%, 32%)
HSVhsv(127, 77%, 53%)
CMYKcmyk(76.9%, 0%, 67.9%, 47.5%)
CIE-LABlab(48.90, -47.50, 39.51)
CIE-LCHlch(48.90, 61.78, 140.25°)
OKLaboklab(54.38% -0.1284 0.0914)
OKLCHoklch(54.38% 0.158 144.5)
XYZxyz(9.5256, 17.5148, 5.1637)
Luminance0.1752 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F862B #861F7A
analogous
#47861F #1F862B #1F865E
triadic
#1F862B #2B1F86 #862B1F
tetradic
#1F862B #1F4786 #861F7A #865E1F
square
#1F862B #1F4786 #861F7A #865E1F
split-complementary
#1F862B #5E1F86 #861F47
monochromatic
#08230B #14541B #1F862B #2AB83B #4AD55A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F862B#FFFFFF#000000##FFFFFF
##1F862B1.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)
#88791F
Deuteranopia (green-blind)
#7D7133
Tritanopia (blue-blind)
#008273
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f862b;
/* rgb */ color: rgb(31, 134, 43);
/* oklch */ color: oklch(54.4% 0.158 144.5);
Tailwind
colors: {
  custom: {
    50: '#6daa69',
    500: '#1f862b',
    950: '#000000',
  },
}
SCSS
$custom: #1f862b;
$custom-light: #6daa69;
$custom-dark: #000000;
JSON
{
  "hex": "#1f862b",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 43
  },
  "hsl": {
    "h": 126.99,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54383,
    "c": 0.1576,
    "h": 144.5
  },
  "luminance": 0.17516
}

Semantic roles & 50–950 ramp

primary
#1F862B
secondary
#B849AB
accent
#42D2E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F862B

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

Preview Lab → · Contrast checker → · Palette generator →

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