#1F841C#1F841C

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

Color values

HEX#1F841C
RGBrgb(31, 132, 28)
HSLhsl(118, 65%, 31%)
HSVhsv(118, 79%, 52%)
CMYKcmyk(76.5%, 0%, 78.8%, 48.2%)
CIE-LABlab(48.10, -48.20, 44.71)
CIE-LCHlch(48.10, 65.74, 137.15°)
OKLaboklab(53.68% -0.131 0.1004)
OKLCHoklch(53.68% 0.165 142.5)
XYZxyz(9.0254, 16.8766, 3.8802)
Luminance0.1688 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F841C #811C84
analogous
#53841C #1F841C #1C844D
triadic
#1F841C #1C1F84 #841C1F
tetradic
#1F841C #1C5384 #811C84 #844D1C
square
#1F841C #1C5384 #811C84 #844D1C
split-complementary
#1F841C #4D1C84 #841C53
monochromatic
#071F07 #135211 #1F841C #2BB627 #47D743

Accessibility & contrast

On white

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

On black

4.38
#1F841C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F841C#FFFFFF#000000##FFFFFF
##1F841C1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f841c;
/* rgb */ color: rgb(31, 132, 28);
/* oklch */ color: oklch(53.7% 0.165 142.5);
Tailwind
colors: {
  custom: {
    50: '#6da960',
    500: '#1f841c',
    950: '#000000',
  },
}
SCSS
$custom: #1f841c;
$custom-light: #6da960;
$custom-dark: #000000;
JSON
{
  "hex": "#1f841c",
  "rgb": {
    "r": 31,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 118.269,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53684,
    "c": 0.16502,
    "h": 142.5
  },
  "luminance": 0.16878
}

Semantic roles & 50–950 ramp

primary
#1F841C
secondary
#B445B7
accent
#40E8E3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F841C

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

Preview Lab → · Contrast checker → · Palette generator →

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