#1F7247#1F7247

#1F7247 is a mid, moderate green. Relative luminance 0.128; OKLCH L 49.2% C 0.105 H 156.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#1F7247
RGBrgb(31, 114, 71)
HSLhsl(149, 57%, 28%)
HSVhsv(149, 73%, 45%)
CMYKcmyk(72.8%, 0%, 37.7%, 55.3%)
CIE-LABlab(42.43, -35.33, 16.90)
CIE-LCHlch(42.43, 39.16, 154.43°)
OKLaboklab(49.16% -0.0956 0.0424)
OKLCHoklch(49.16% 0.105 156.1)
XYZxyz(7.7190, 12.7800, 8.0200)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7247 #721F4A
analogous
#20721F #1F7247 #1F7270
triadic
#1F7247 #471F72 #72471F
tetradic
#1F7247 #1F2072 #721F4A #72701F
square
#1F7247 #1F2072 #721F4A #72701F
split-complementary
#1F7247 #701F72 #721F20
monochromatic
#07180F #124229 #1F7247 #2CA265 #40CB83

Accessibility & contrast

On white

5.91
#1F7247 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#1F7247 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7247
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7247#FFFFFF#000000##FFFFFF
##1F72471.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716944
Deuteranopia (green-blind)
#67614A
Tritanopia (blue-blind)
#007167
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7247;
/* rgb */ color: rgb(31, 114, 71);
/* oklch */ color: oklch(49.2% 0.105 156.1);
Tailwind
colors: {
  custom: {
    50: '#679b7a',
    500: '#1f7247',
    950: '#000000',
  },
}
SCSS
$custom: #1f7247;
$custom-light: #679b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7247",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 71
  },
  "hsl": {
    "h": 148.916,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49156,
    "c": 0.10461,
    "h": 156.1
  },
  "luminance": 0.12781
}

Semantic roles & 50–950 ramp

primary
#1F7247
secondary
#A64778
accent
#4797E0
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #1F7247

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

Preview Lab → · Contrast checker → · Palette generator →

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