#1F851B#1F851B

#1F851B is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.167 H 142.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#1F851B
RGBrgb(31, 133, 27)
HSLhsl(118, 66%, 31%)
HSVhsv(118, 80%, 52%)
CMYKcmyk(76.7%, 0%, 79.7%, 47.8%)
CIE-LABlab(48.44, -48.61, 45.38)
CIE-LCHlch(48.44, 66.50, 136.97°)
OKLaboklab(53.96% -0.1321 0.1016)
OKLCHoklch(53.96% 0.167 142.4)
XYZxyz(9.1499, 17.1444, 3.8637)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F851B #811B85
analogous
#54851B #1F851B #1B854C
triadic
#1F851B #1B1F85 #851B1F
tetradic
#1F851B #1B5485 #811B85 #854C1B
square
#1F851B #1B5485 #811B85 #854C1B
split-complementary
#1F851B #4C1B85 #851B54
monochromatic
#071F06 #135211 #1F851B #2BB825 #47D942

Accessibility & contrast

On white

4.74
#1F851B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#1F851B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F851B
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F851B#FFFFFF#000000##FFFFFF
##1F851B1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887801
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f851b;
/* rgb */ color: rgb(31, 133, 27);
/* oklch */ color: oklch(54.0% 0.167 142.4);
Tailwind
colors: {
  custom: {
    50: '#6daa60',
    500: '#1f851b',
    950: '#000000',
  },
}
SCSS
$custom: #1f851b;
$custom-light: #6daa60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f851b",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 117.736,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53962,
    "c": 0.16671,
    "h": 142.4
  },
  "luminance": 0.17145
}

Semantic roles & 50–950 ramp

primary
#1F851B
secondary
#B444B8
accent
#3FE9E3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F851B

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

Preview Lab → · Contrast checker → · Palette generator →

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