#1F7040#1F7040

#1F7040 is a mid, moderate green. Relative luminance 0.122; OKLCH L 48.4% C 0.109 H 153.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#1F7040
RGBrgb(31, 112, 64)
HSLhsl(144, 57%, 28%)
HSVhsv(144, 72%, 44%)
CMYKcmyk(72.3%, 0%, 42.9%, 56.1%)
CIE-LABlab(41.61, -35.94, 19.86)
CIE-LCHlch(41.61, 41.06, 151.07°)
OKLaboklab(48.44% -0.0969 0.0493)
OKLCHoklch(48.44% 0.109 153)
XYZxyz(7.2840, 12.2490, 6.8299)
Luminance0.1225 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7040 #701F4F
analogous
#27701F #1F7040 #1F7068
triadic
#1F7040 #401F70 #70401F
tetradic
#1F7040 #1F2770 #701F4F #70681F
square
#1F7040 #1F2770 #701F4F #70681F
split-complementary
#1F7040 #681F70 #701F27
monochromatic
#07180E #124025 #1F7040 #2CA05B #3FCA78

Accessibility & contrast

On white

6.09
#1F7040 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#1F7040 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7040
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7040#FFFFFF#000000##FFFFFF
##1F70401.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70663D
Deuteranopia (green-blind)
#665F43
Tritanopia (blue-blind)
#006E64
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1f7040;
/* rgb */ color: rgb(31, 112, 64);
/* oklch */ color: oklch(48.4% 0.109 153.0);
Tailwind
colors: {
  custom: {
    50: '#669a75',
    500: '#1f7040',
    950: '#000000',
  },
}
SCSS
$custom: #1f7040;
$custom-light: #669a75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7040",
  "rgb": {
    "r": 31,
    "g": 112,
    "b": 64
  },
  "hsl": {
    "h": 144.444,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.48437,
    "c": 0.10877,
    "h": 153
  },
  "luminance": 0.1225
}

Semantic roles & 50–950 ramp

primary
#1F7040
secondary
#A4477E
accent
#48A2E0
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#060E08
muted
#7A7E7B

Preview Lab

Preview with #1F7040

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

Preview Lab → · Contrast checker → · Palette generator →

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