#1F7240#1F7240

#1F7240 is a mid, moderate green. Relative luminance 0.127; OKLCH L 49.0% C 0.112 H 152.6°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#1F7240
RGBrgb(31, 114, 64)
HSLhsl(144, 57%, 28%)
HSVhsv(144, 73%, 45%)
CMYKcmyk(72.8%, 0%, 43.9%, 55.3%)
CIE-LABlab(42.30, -36.77, 20.76)
CIE-LCHlch(42.30, 42.23, 150.54°)
OKLaboklab(49.01% -0.0991 0.0514)
OKLCHoklch(49.01% 0.112 152.6)
XYZxyz(7.5072, 12.6953, 6.9043)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7240 #721F51
analogous
#28721F #1F7240 #1F7269
triadic
#1F7240 #401F72 #72401F
tetradic
#1F7240 #1F2872 #721F51 #72691F
square
#1F7240 #1F2872 #721F51 #72691F
split-complementary
#1F7240 #691F72 #721F28
monochromatic
#07180E #124225 #1F7240 #2CA25B #40CB77

Accessibility & contrast

On white

5.93
#1F7240 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#1F7240 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7240
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7240#FFFFFF#000000##FFFFFF
##1F72401.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72683C
Deuteranopia (green-blind)
#686143
Tritanopia (blue-blind)
#007066
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7240;
/* rgb */ color: rgb(31, 114, 64);
/* oklch */ color: oklch(49.0% 0.112 152.6);
Tailwind
colors: {
  custom: {
    50: '#679b75',
    500: '#1f7240',
    950: '#000000',
  },
}
SCSS
$custom: #1f7240;
$custom-light: #679b75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7240",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 64
  },
  "hsl": {
    "h": 143.855,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49007,
    "c": 0.11168,
    "h": 152.6
  },
  "luminance": 0.12696
}

Semantic roles & 50–950 ramp

primary
#1F7240
secondary
#A64780
accent
#47A4E0
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #1F7240

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

Preview Lab → · Contrast checker → · Palette generator →

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