#1F802D#1F802D

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

Color values

HEX#1F802D
RGBrgb(31, 128, 45)
HSLhsl(129, 61%, 31%)
HSVhsv(129, 76%, 50%)
CMYKcmyk(75.8%, 0%, 64.8%, 49.8%)
CIE-LABlab(46.87, -45.15, 36.33)
CIE-LCHlch(46.87, 57.95, 141.18°)
OKLaboklab(52.7% -0.1219 0.0849)
OKLCHoklch(52.7% 0.149 145.1)
XYZxyz(8.7573, 15.9181, 5.0931)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F802D #801F72
analogous
#41801F #1F802D #1F805D
triadic
#1F802D #2D1F80 #802D1F
tetradic
#1F802D #1F4180 #801F72 #805D1F
square
#1F802D #1F4180 #801F72 #805D1F
split-complementary
#1F802D #5D1F80 #801F41
monochromatic
#071D0A #134F1C #1F802D #2BB13E #47D25B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F802D#FFFFFF#000000##FFFFFF
##1F802D1.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)
#827423
Deuteranopia (green-blind)
#776C34
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f802d;
/* rgb */ color: rgb(31, 128, 45);
/* oklch */ color: oklch(52.7% 0.149 145.1);
Tailwind
colors: {
  custom: {
    50: '#6ba669',
    500: '#1f802d',
    950: '#000000',
  },
}
SCSS
$custom: #1f802d;
$custom-light: #6ba669;
$custom-dark: #000000;
JSON
{
  "hex": "#1f802d",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 128.66,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.527,
    "c": 0.14855,
    "h": 145.1
  },
  "luminance": 0.15919
}

Semantic roles & 50–950 ramp

primary
#1F802D
secondary
#B348A3
accent
#44CDE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F802D

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

Preview Lab → · Contrast checker → · Palette generator →

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