#1F862C#1F862C

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

Color values

HEX#1F862C
RGBrgb(31, 134, 44)
HSLhsl(128, 62%, 32%)
HSVhsv(128, 77%, 53%)
CMYKcmyk(76.9%, 0%, 67.2%, 47.5%)
CIE-LABlab(48.91, -47.39, 39.07)
CIE-LCHlch(48.91, 61.42, 140.50°)
OKLaboklab(54.39% -0.128 0.0906)
OKLCHoklch(54.39% 0.157 144.7)
XYZxyz(9.5441, 17.5222, 5.2615)
Luminance0.1752 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F862C #861F79
analogous
#45861F #1F862C #1F8660
triadic
#1F862C #2C1F86 #862C1F
tetradic
#1F862C #1F4586 #861F79 #86601F
square
#1F862C #1F4586 #861F79 #86601F
split-complementary
#1F862C #601F86 #861F45
monochromatic
#08230B #14541C #1F862C #2AB83C #4AD55C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F862C#FFFFFF#000000##FFFFFF
##1F862C1.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)
#887921
Deuteranopia (green-blind)
#7D7134
Tritanopia (blue-blind)
#008273
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f862c;
/* rgb */ color: rgb(31, 134, 44);
/* oklch */ color: oklch(54.4% 0.157 144.7);
Tailwind
colors: {
  custom: {
    50: '#6daa69',
    500: '#1f862c',
    950: '#000000',
  },
}
SCSS
$custom: #1f862c;
$custom-light: #6daa69;
$custom-dark: #000000;
JSON
{
  "hex": "#1f862c",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 44
  },
  "hsl": {
    "h": 127.573,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54393,
    "c": 0.15684,
    "h": 144.7
  },
  "luminance": 0.17523
}

Semantic roles & 50–950 ramp

primary
#1F862C
secondary
#B849AA
accent
#42D1E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F862C

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

Preview Lab → · Contrast checker → · Palette generator →

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