#1F7B40#1F7B40

#1F7B40 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.6% C 0.125 H 150.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#1F7B40
RGBrgb(31, 123, 64)
HSLhsl(142, 60%, 30%)
HSVhsv(142, 75%, 48%)
CMYKcmyk(74.8%, 0%, 48%, 51.8%)
CIE-LABlab(45.40, -40.40, 24.76)
CIE-LCHlch(45.40, 47.39, 148.50°)
OKLaboklab(51.56% -0.1087 0.0607)
OKLCHoklch(51.56% 0.125 150.8)
XYZxyz(8.5727, 14.8264, 7.2595)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B40 #7B1F5A
analogous
#2C7B1F #1F7B40 #1F7B6E
triadic
#1F7B40 #401F7B #7B401F
tetradic
#1F7B40 #1F2C7B #7B1F5A #7B6E1F
square
#1F7B40 #1F2C7B #7B1F5A #7B6E1F
split-complementary
#1F7B40 #6E1F7B #7B1F2C
monochromatic
#06190D #134A27 #1F7B40 #2BAC59 #44D076

Accessibility & contrast

On white

5.30
#1F7B40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#1F7B40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7B40
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7B40#FFFFFF#000000##FFFFFF
##1F7B401.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C703B
Deuteranopia (green-blind)
#716844
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7b40;
/* rgb */ color: rgb(31, 123, 64);
/* oklch */ color: oklch(51.6% 0.125 150.8);
Tailwind
colors: {
  custom: {
    50: '#69a276',
    500: '#1f7b40',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b40;
$custom-light: #69a276;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b40",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 141.522,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51561,
    "c": 0.12451,
    "h": 150.8
  },
  "luminance": 0.14827
}

Semantic roles & 50–950 ramp

primary
#1F7B40
secondary
#AE4889
accent
#45AAE3
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7B40

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

Preview Lab → · Contrast checker → · Palette generator →

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