#1F802F#1F802F

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

Color values

HEX#1F802F
RGBrgb(31, 128, 47)
HSLhsl(130, 61%, 31%)
HSVhsv(130, 76%, 50%)
CMYKcmyk(75.8%, 0%, 63.3%, 49.8%)
CIE-LABlab(46.89, -44.90, 35.40)
CIE-LCHlch(46.89, 57.18, 141.75°)
OKLaboklab(52.72% -0.1211 0.0831)
OKLCHoklch(52.72% 0.147 145.6)
XYZxyz(8.7967, 15.9339, 5.3007)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F802F #801F70
analogous
#3F801F #1F802F #1F805F
triadic
#1F802F #2F1F80 #802F1F
tetradic
#1F802F #1F3F80 #801F70 #805F1F
square
#1F802F #1F3F80 #801F70 #805F1F
split-complementary
#1F802F #5F1F80 #801F3F
monochromatic
#071D0B #134F1D #1F802F #2BB141 #47D25E

Accessibility & contrast

On white

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

On black

4.19
#1F802F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F802F#FFFFFF#000000##FFFFFF
##1F802F1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827426
Deuteranopia (green-blind)
#776C36
Tritanopia (blue-blind)
#007D6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f802f;
/* rgb */ color: rgb(31, 128, 47);
/* oklch */ color: oklch(52.7% 0.147 145.6);
Tailwind
colors: {
  custom: {
    50: '#6ba66b',
    500: '#1f802f',
    950: '#000000',
  },
}
SCSS
$custom: #1f802f;
$custom-light: #6ba66b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f802f",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 129.897,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52724,
    "c": 0.1469,
    "h": 145.6
  },
  "luminance": 0.15935
}

Semantic roles & 50–950 ramp

primary
#1F802F
secondary
#B348A1
accent
#44CAE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #1F802F

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

Preview Lab → · Contrast checker → · Palette generator →

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