#1F802C#1F802C

#1F802C is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.149 H 144.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#1F802C
RGBrgb(31, 128, 44)
HSLhsl(128, 61%, 31%)
HSVhsv(128, 76%, 50%)
CMYKcmyk(75.8%, 0%, 65.6%, 49.8%)
CIE-LABlab(46.86, -45.27, 36.79)
CIE-LCHlch(46.86, 58.33, 140.90°)
OKLaboklab(52.69% -0.1223 0.0858)
OKLCHoklch(52.69% 0.149 144.9)
XYZxyz(8.7383, 15.9105, 4.9929)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F802C #801F73
analogous
#42801F #1F802C #1F805C
triadic
#1F802C #2C1F80 #802C1F
tetradic
#1F802C #1F4280 #801F73 #805C1F
square
#1F802C #1F4280 #801F73 #805C1F
split-complementary
#1F802C #5C1F80 #801F42
monochromatic
#071D0A #134F1B #1F802C #2BB13D #47D25A

Accessibility & contrast

On white

5.02
#1F802C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#1F802C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F802C
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F802C#FFFFFF#000000##FFFFFF
##1F802C1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827422
Deuteranopia (green-blind)
#776C33
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f802c;
/* rgb */ color: rgb(31, 128, 44);
/* oklch */ color: oklch(52.7% 0.149 144.9);
Tailwind
colors: {
  custom: {
    50: '#6ba669',
    500: '#1f802c',
    950: '#000000',
  },
}
SCSS
$custom: #1f802c;
$custom-light: #6ba669;
$custom-dark: #000000;
JSON
{
  "hex": "#1f802c",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 128.041,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52689,
    "c": 0.14935,
    "h": 144.9
  },
  "luminance": 0.15911
}

Semantic roles & 50–950 ramp

primary
#1F802C
secondary
#B348A5
accent
#44CFE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F802C

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

Preview Lab → · Contrast checker → · Palette generator →

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