#1F804C#1F804C

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

Color values

HEX#1F804C
RGBrgb(31, 128, 76)
HSLhsl(148, 61%, 31%)
HSVhsv(148, 76%, 50%)
CMYKcmyk(75.8%, 0%, 40.6%, 49.8%)
CIE-LABlab(47.30, -40.10, 20.54)
CIE-LCHlch(47.30, 45.05, 152.88°)
OKLaboklab(53.2% -0.1082 0.0512)
OKLCHoklch(53.2% 0.12 154.7)
XYZxyz(9.5879, 16.2503, 9.4674)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F804C #801F53
analogous
#22801F #1F804C #1F807C
triadic
#1F804C #4C1F80 #804C1F
tetradic
#1F804C #1F2280 #801F53 #807C1F
square
#1F804C #1F2280 #801F53 #807C1F
split-complementary
#1F804C #7C1F80 #801F22
monochromatic
#071D11 #134F2F #1F804C #2BB169 #47D288

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F804C#FFFFFF#000000##FFFFFF
##1F804C1.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)
#807548
Deuteranopia (green-blind)
#746D4F
Tritanopia (blue-blind)
#007F73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f804c;
/* rgb */ color: rgb(31, 128, 76);
/* oklch */ color: oklch(53.2% 0.120 154.7);
Tailwind
colors: {
  custom: {
    50: '#6aa67e',
    500: '#1f804c',
    950: '#000000',
  },
}
SCSS
$custom: #1f804c;
$custom-light: #6aa67e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f804c",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 76
  },
  "hsl": {
    "h": 147.835,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53201,
    "c": 0.11968,
    "h": 154.7
  },
  "luminance": 0.16251
}

Semantic roles & 50–950 ramp

primary
#1F804C
secondary
#B34881
accent
#449AE4
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #1F804C

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

Preview Lab → · Contrast checker → · Palette generator →

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