#1F841B#1F841B

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

Color values

HEX#1F841B
RGBrgb(31, 132, 27)
HSLhsl(118, 66%, 31%)
HSVhsv(118, 80%, 52%)
CMYKcmyk(76.5%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.10, -48.27, 45.05)
CIE-LCHlch(48.10, 66.03, 136.98°)
OKLaboklab(53.68% -0.1312 0.1009)
OKLCHoklch(53.68% 0.166 142.4)
XYZxyz(9.0136, 16.8719, 3.8183)
Luminance0.1687 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F841B #801B84
analogous
#53841B #1F841B #1B844B
triadic
#1F841B #1B1F84 #841B1F
tetradic
#1F841B #1B5384 #801B84 #844B1B
square
#1F841B #1B5384 #801B84 #844B1B
split-complementary
#1F841B #4B1B84 #841B53
monochromatic
#071E06 #135111 #1F841B #2BB725 #47D841

Accessibility & contrast

On white

4.80
#1F841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#1F841B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F841B
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F841B#FFFFFF#000000##FFFFFF
##1F841B1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#008070
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f841b;
/* rgb */ color: rgb(31, 132, 27);
/* oklch */ color: oklch(53.7% 0.166 142.4);
Tailwind
colors: {
  custom: {
    50: '#6da960',
    500: '#1f841b',
    950: '#000000',
  },
}
SCSS
$custom: #1f841b;
$custom-light: #6da960;
$custom-dark: #000000;
JSON
{
  "hex": "#1f841b",
  "rgb": {
    "r": 31,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 117.714,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53677,
    "c": 0.16556,
    "h": 142.4
  },
  "luminance": 0.16873
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F841B

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

Preview Lab → · Contrast checker → · Palette generator →

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