#1F861B#1F861B

#1F861B is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.2% C 0.168 H 142.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#1F861B
RGBrgb(31, 134, 27)
HSLhsl(118, 66%, 32%)
HSVhsv(118, 80%, 53%)
CMYKcmyk(76.9%, 0%, 79.9%, 47.5%)
CIE-LABlab(48.78, -48.95, 45.72)
CIE-LCHlch(48.78, 66.98, 136.95°)
OKLaboklab(54.25% -0.133 0.1023)
OKLCHoklch(54.25% 0.168 142.4)
XYZxyz(9.2874, 17.4196, 3.9095)
Luminance0.1742 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F861B #821B86
analogous
#55861B #1F861B #1B864D
triadic
#1F861B #1B1F86 #861B1F
tetradic
#1F861B #1B5586 #821B86 #864D1B
square
#1F861B #1B5586 #821B86 #864D1B
split-complementary
#1F861B #4D1B86 #861B55
monochromatic
#072006 #135311 #1F861B #2BB925 #48D942

Accessibility & contrast

On white

4.68
#1F861B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#1F861B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F861B
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F861B#FFFFFF#000000##FFFFFF
##1F861B1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#008272
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f861b;
/* rgb */ color: rgb(31, 134, 27);
/* oklch */ color: oklch(54.2% 0.168 142.4);
Tailwind
colors: {
  custom: {
    50: '#6daa60',
    500: '#1f861b',
    950: '#000000',
  },
}
SCSS
$custom: #1f861b;
$custom-light: #6daa60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f861b",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 27
  },
  "hsl": {
    "h": 117.757,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54247,
    "c": 0.16784,
    "h": 142.4
  },
  "luminance": 0.17421
}

Semantic roles & 50–950 ramp

primary
#1F861B
secondary
#B544B9
accent
#3EE9E3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F861B

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

Preview Lab → · Contrast checker → · Palette generator →

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