#1F7142#1F7142

#1F7142 is a mid, moderate green. Relative luminance 0.125; OKLCH L 48.8% C 0.108 H 153.8°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#1F7142
RGBrgb(31, 113, 66)
HSLhsl(146, 57%, 28%)
HSVhsv(146, 73%, 44%)
CMYKcmyk(72.6%, 0%, 41.6%, 55.7%)
CIE-LABlab(41.99, -35.95, 19.21)
CIE-LCHlch(41.99, 40.76, 151.88°)
OKLaboklab(48.76% -0.097 0.0478)
OKLCHoklch(48.76% 0.108 153.8)
XYZxyz(7.4529, 12.4941, 7.1720)
Luminance0.1250 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7142 #711F4E
analogous
#25711F #1F7142 #1F716B
triadic
#1F7142 #421F71 #71421F
tetradic
#1F7142 #1F2571 #711F4E #716B1F
square
#1F7142 #1F2571 #711F4E #716B1F
split-complementary
#1F7142 #6B1F71 #711F25
monochromatic
#07180E #124126 #1F7142 #2CA15E #40CB7B

Accessibility & contrast

On white

6.00
#1F7142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#1F7142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7142
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7142#FFFFFF#000000##FFFFFF
##1F71421.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71673F
Deuteranopia (green-blind)
#676045
Tritanopia (blue-blind)
#007065
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7142;
/* rgb */ color: rgb(31, 113, 66);
/* oklch */ color: oklch(48.8% 0.108 153.8);
Tailwind
colors: {
  custom: {
    50: '#679a77',
    500: '#1f7142',
    950: '#000000',
  },
}
SCSS
$custom: #1f7142;
$custom-light: #679a77;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7142",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 66
  },
  "hsl": {
    "h": 145.61,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48764,
    "c": 0.1082,
    "h": 153.8
  },
  "luminance": 0.12495
}

Semantic roles & 50–950 ramp

primary
#1F7142
secondary
#A5477D
accent
#489FE0
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #1F7142

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

Preview Lab → · Contrast checker → · Palette generator →

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