#1F804D#1F804D

#1F804D is a mid, moderate green. Relative luminance 0.163; OKLCH L 53.2% C 0.119 H 155.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#1F804D
RGBrgb(31, 128, 77)
HSLhsl(148, 61%, 31%)
HSVhsv(148, 76%, 50%)
CMYKcmyk(75.8%, 0%, 39.8%, 49.8%)
CIE-LABlab(47.32, -39.89, 20.00)
CIE-LCHlch(47.32, 44.62, 153.38°)
OKLaboklab(53.22% -0.1077 0.0499)
OKLCHoklch(53.22% 0.119 155.1)
XYZxyz(9.6229, 16.2644, 9.6519)
Luminance0.1626 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F804D #801F52
analogous
#21801F #1F804D #1F807D
triadic
#1F804D #4D1F80 #804D1F
tetradic
#1F804D #1F2180 #801F52 #807D1F
square
#1F804D #1F2180 #801F52 #807D1F
split-complementary
#1F804D #7D1F80 #801F21
monochromatic
#071D12 #134F2F #1F804D #2BB16B #47D289

Accessibility & contrast

On white

4.94
#1F804D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#1F804D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F804D
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F804D#FFFFFF#000000##FFFFFF
##1F804D1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80754A
Deuteranopia (green-blind)
#746D50
Tritanopia (blue-blind)
#007F73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f804d;
/* rgb */ color: rgb(31, 128, 77);
/* oklch */ color: oklch(53.2% 0.119 155.1);
Tailwind
colors: {
  custom: {
    50: '#6aa67f',
    500: '#1f804d',
    950: '#000000',
  },
}
SCSS
$custom: #1f804d;
$custom-light: #6aa67f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f804d",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 77
  },
  "hsl": {
    "h": 148.454,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53222,
    "c": 0.1187,
    "h": 155.1
  },
  "luminance": 0.16265
}

Semantic roles & 50–950 ramp

primary
#1F804D
secondary
#B34880
accent
#4498E4
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #1F804D

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

Preview Lab → · Contrast checker → · Palette generator →

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