#1F7640#1F7640

#1F7640 is a mid, moderate green. Relative luminance 0.136; OKLCH L 50.1% C 0.117 H 151.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#1F7640
RGBrgb(31, 118, 64)
HSLhsl(143, 58%, 29%)
HSVhsv(143, 74%, 46%)
CMYKcmyk(73.7%, 0%, 45.8%, 53.7%)
CIE-LABlab(43.68, -38.41, 22.55)
CIE-LCHlch(43.68, 44.54, 149.58°)
OKLaboklab(50.14% -0.1034 0.0556)
OKLCHoklch(50.14% 0.117 151.7)
XYZxyz(7.9682, 13.6174, 7.0580)
Luminance0.1362 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7640 #761F55
analogous
#2A761F #1F7640 #1F766C
triadic
#1F7640 #401F76 #76401F
tetradic
#1F7640 #1F2A76 #761F55 #766C1F
square
#1F7640 #1F2A76 #761F55 #766C1F
split-complementary
#1F7640 #6C1F76 #761F2A
monochromatic
#06180D #124626 #1F7640 #2CA65A #42CD77

Accessibility & contrast

On white

5.64
#1F7640 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#1F7640 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7640
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7640#FFFFFF#000000##FFFFFF
##1F76401.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766C3C
Deuteranopia (green-blind)
#6C6444
Tritanopia (blue-blind)
#007469
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f7640;
/* rgb */ color: rgb(31, 118, 64);
/* oklch */ color: oklch(50.1% 0.117 151.7);
Tailwind
colors: {
  custom: {
    50: '#689e75',
    500: '#1f7640',
    950: '#000000',
  },
}
SCSS
$custom: #1f7640;
$custom-light: #689e75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7640",
  "rgb": {
    "r": 31,
    "g": 118,
    "b": 64
  },
  "hsl": {
    "h": 142.759,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50144,
    "c": 0.11744,
    "h": 151.7
  },
  "luminance": 0.13618
}

Semantic roles & 50–950 ramp

primary
#1F7640
secondary
#AA4784
accent
#46A7E2
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #1F7640

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

Preview Lab → · Contrast checker → · Palette generator →

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