#1F862E#1F862E

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

Color values

HEX#1F862E
RGBrgb(31, 134, 46)
HSLhsl(129, 62%, 32%)
HSVhsv(129, 77%, 53%)
CMYKcmyk(76.9%, 0%, 65.7%, 47.5%)
CIE-LABlab(48.93, -47.16, 38.18)
CIE-LCHlch(48.93, 60.68, 141.01°)
OKLaboklab(54.42% -0.1273 0.0889)
OKLCHoklch(54.42% 0.155 145.1)
XYZxyz(9.5826, 17.5376, 5.4643)
Luminance0.1754 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F862E #861F77
analogous
#43861F #1F862E #1F8662
triadic
#1F862E #2E1F86 #862E1F
tetradic
#1F862E #1F4386 #861F77 #86621F
square
#1F862E #1F4386 #861F77 #86621F
split-complementary
#1F862E #621F86 #861F43
monochromatic
#08230C #14541D #1F862E #2AB83F #4AD55E

Accessibility & contrast

On white

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

On black

4.51
#1F862E on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F862E#FFFFFF#000000##FFFFFF
##1F862E1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887923
Deuteranopia (green-blind)
#7D7136
Tritanopia (blue-blind)
#008274
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f862e;
/* rgb */ color: rgb(31, 134, 46);
/* oklch */ color: oklch(54.4% 0.155 145.1);
Tailwind
colors: {
  custom: {
    50: '#6caa6b',
    500: '#1f862e',
    950: '#000000',
  },
}
SCSS
$custom: #1f862e;
$custom-light: #6caa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f862e",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 46
  },
  "hsl": {
    "h": 128.738,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54415,
    "c": 0.15529,
    "h": 145.1
  },
  "luminance": 0.17539
}

Semantic roles & 50–950 ramp

primary
#1F862E
secondary
#B849A8
accent
#42CEE5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F862E

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

Preview Lab → · Contrast checker → · Palette generator →

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