#1F804E#1F804E

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

Color values

HEX#1F804E
RGBrgb(31, 128, 78)
HSLhsl(149, 61%, 31%)
HSVhsv(149, 76%, 50%)
CMYKcmyk(75.8%, 0%, 39.1%, 49.8%)
CIE-LABlab(47.34, -39.68, 19.45)
CIE-LCHlch(47.34, 44.20, 153.88°)
OKLaboklab(53.24% -0.1072 0.0487)
OKLCHoklch(53.24% 0.118 155.6)
XYZxyz(9.6585, 16.2786, 9.8393)
Luminance0.1628 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F804E #801F51
analogous
#20801F #1F804E #1F807E
triadic
#1F804E #4E1F80 #804E1F
tetradic
#1F804E #1F2080 #801F51 #807E1F
square
#1F804E #1F2080 #801F51 #807E1F
split-complementary
#1F804E #7E1F80 #801F20
monochromatic
#071D12 #134F30 #1F804E #2BB16C #47D28B

Accessibility & contrast

On white

4.93
#1F804E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#1F804E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F804E
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F804E#FFFFFF#000000##FFFFFF
##1F804E1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F754B
Deuteranopia (green-blind)
#746D51
Tritanopia (blue-blind)
#007F73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f804e;
/* rgb */ color: rgb(31, 128, 78);
/* oklch */ color: oklch(53.2% 0.118 155.6);
Tailwind
colors: {
  custom: {
    50: '#6aa680',
    500: '#1f804e',
    950: '#000000',
  },
}
SCSS
$custom: #1f804e;
$custom-light: #6aa680;
$custom-dark: #000000;
JSON
{
  "hex": "#1f804e",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 78
  },
  "hsl": {
    "h": 149.072,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53243,
    "c": 0.11771,
    "h": 155.6
  },
  "luminance": 0.1628
}

Semantic roles & 50–950 ramp

primary
#1F804E
secondary
#B3487F
accent
#4496E4
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #1F804E

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

Preview Lab → · Contrast checker → · Palette generator →

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