#1F831B#1F831B

#1F831B is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.4% C 0.164 H 142.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#1F831B
RGBrgb(31, 131, 27)
HSLhsl(118, 66%, 31%)
HSVhsv(118, 79%, 51%)
CMYKcmyk(76.3%, 0%, 79.4%, 48.6%)
CIE-LABlab(47.75, -47.94, 44.72)
CIE-LCHlch(47.75, 65.55, 136.99°)
OKLaboklab(53.39% -0.1303 0.1002)
OKLCHoklch(53.39% 0.164 142.4)
XYZxyz(8.8787, 16.6020, 3.7733)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F831B #7F1B83
analogous
#53831B #1F831B #1B834B
triadic
#1F831B #1B1F83 #831B1F
tetradic
#1F831B #1B5383 #7F1B83 #834B1B
square
#1F831B #1B5383 #7F1B83 #834B1B
split-complementary
#1F831B #4B1B83 #831B53
monochromatic
#071E06 #135011 #1F831B #2BB625 #46D841

Accessibility & contrast

On white

4.86
#1F831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#1F831B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F831B
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F831B#FFFFFF#000000##FFFFFF
##1F831B1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867602
Deuteranopia (green-blind)
#7B6E27
Tritanopia (blue-blind)
#007F6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f831b;
/* rgb */ color: rgb(31, 131, 27);
/* oklch */ color: oklch(53.4% 0.164 142.4);
Tailwind
colors: {
  custom: {
    50: '#6da860',
    500: '#1f831b',
    950: '#000000',
  },
}
SCSS
$custom: #1f831b;
$custom-light: #6da860;
$custom-dark: #000000;
JSON
{
  "hex": "#1f831b",
  "rgb": {
    "r": 31,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 117.692,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53391,
    "c": 0.16441,
    "h": 142.4
  },
  "luminance": 0.16603
}

Semantic roles & 50–950 ramp

primary
#1F831B
secondary
#B243B6
accent
#3FE9E2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F831B

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

Preview Lab → · Contrast checker → · Palette generator →

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