#1F712C#1F712C

#1F712C is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.4% C 0.130 H 145.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#1F712C
RGBrgb(31, 113, 44)
HSLhsl(130, 57%, 28%)
HSVhsv(130, 73%, 44%)
CMYKcmyk(72.6%, 0%, 61.1%, 55.7%)
CIE-LABlab(41.66, -39.72, 30.85)
CIE-LCHlch(41.66, 50.29, 142.17°)
OKLaboklab(48.39% -0.1072 0.073)
OKLCHoklch(48.39% 0.13 145.8)
XYZxyz(6.9243, 12.2827, 4.3883)
Luminance0.1228 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F712C #711F64
analogous
#3B711F #1F712C #1F7155
triadic
#1F712C #2C1F71 #712C1F
tetradic
#1F712C #1F3B71 #711F64 #71551F
square
#1F712C #1F3B71 #711F64 #71551F
split-complementary
#1F712C #551F71 #711F3B
monochromatic
#071809 #124119 #1F712C #2CA13F #40CB56

Accessibility & contrast

On white

6.08
#1F712C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#1F712C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F712C
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F712C#FFFFFF#000000##FFFFFF
##1F712C1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736625
Deuteranopia (green-blind)
#696032
Tritanopia (blue-blind)
#006E62
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1f712c;
/* rgb */ color: rgb(31, 113, 44);
/* oklch */ color: oklch(48.4% 0.130 145.8);
Tailwind
colors: {
  custom: {
    50: '#679b67',
    500: '#1f712c',
    950: '#000000',
  },
}
SCSS
$custom: #1f712c;
$custom-light: #679b67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f712c",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 44
  },
  "hsl": {
    "h": 129.512,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48385,
    "c": 0.12972,
    "h": 145.8
  },
  "luminance": 0.12283
}

Semantic roles & 50–950 ramp

primary
#1F712C
secondary
#A54796
accent
#48C8E0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #1F712C

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

Preview Lab → · Contrast checker → · Palette generator →

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