#1F7342#1F7342

#1F7342 is a mid, moderate green. Relative luminance 0.129; OKLCH L 49.3% C 0.111 H 153.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#1F7342
RGBrgb(31, 115, 66)
HSLhsl(145, 58%, 29%)
HSVhsv(145, 73%, 45%)
CMYKcmyk(73%, 0%, 42.6%, 54.9%)
CIE-LABlab(42.68, -36.79, 20.12)
CIE-LCHlch(42.68, 41.93, 151.32°)
OKLaboklab(49.33% -0.0992 0.05)
OKLCHoklch(49.33% 0.111 153.3)
XYZxyz(7.6785, 12.9453, 7.2472)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7342 #731F50
analogous
#26731F #1F7342 #1F736C
triadic
#1F7342 #421F73 #73421F
tetradic
#1F7342 #1F2673 #731F50 #736C1F
square
#1F7342 #1F2673 #731F50 #736C1F
split-complementary
#1F7342 #6C1F73 #731F26
monochromatic
#06180E #124326 #1F7342 #2CA35E #41CC7B

Accessibility & contrast

On white

5.85
#1F7342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#1F7342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7342
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7342#FFFFFF#000000##FFFFFF
##1F73421.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73693F
Deuteranopia (green-blind)
#696245
Tritanopia (blue-blind)
#007167
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7342;
/* rgb */ color: rgb(31, 115, 66);
/* oklch */ color: oklch(49.3% 0.111 153.3);
Tailwind
colors: {
  custom: {
    50: '#679c77',
    500: '#1f7342',
    950: '#000000',
  },
}
SCSS
$custom: #1f7342;
$custom-light: #679c77;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7342",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 66
  },
  "hsl": {
    "h": 145,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49332,
    "c": 0.11111,
    "h": 153.3
  },
  "luminance": 0.12946
}

Semantic roles & 50–950 ramp

primary
#1F7342
secondary
#A7477F
accent
#47A1E1
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #1F7342

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

Preview Lab → · Contrast checker → · Palette generator →

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