#1F712A#1F712A

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

Color values

HEX#1F712A
RGBrgb(31, 113, 42)
HSLhsl(128, 57%, 28%)
HSVhsv(128, 73%, 44%)
CMYKcmyk(72.6%, 0%, 62.8%, 55.7%)
CIE-LABlab(41.64, -39.99, 31.83)
CIE-LCHlch(41.64, 51.11, 141.48°)
OKLaboklab(48.36% -0.108 0.0749)
OKLCHoklch(48.36% 0.131 145.3)
XYZxyz(6.8877, 12.2680, 4.1950)
Luminance0.1227 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F712A #711F66
analogous
#3D711F #1F712A #1F7153
triadic
#1F712A #2A1F71 #712A1F
tetradic
#1F712A #1F3D71 #711F66 #71531F
square
#1F712A #1F3D71 #711F66 #71531F
split-complementary
#1F712A #531F71 #711F3D
monochromatic
#071809 #124118 #1F712A #2CA13C #40CB52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F712A#FFFFFF#000000##FFFFFF
##1F712A1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736622
Deuteranopia (green-blind)
#696030
Tritanopia (blue-blind)
#016E62
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1f712a;
/* rgb */ color: rgb(31, 113, 42);
/* oklch */ color: oklch(48.4% 0.131 145.3);
Tailwind
colors: {
  custom: {
    50: '#679b66',
    500: '#1f712a',
    950: '#000000',
  },
}
SCSS
$custom: #1f712a;
$custom-light: #679b66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f712a",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 42
  },
  "hsl": {
    "h": 128.049,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48358,
    "c": 0.13149,
    "h": 145.3
  },
  "luminance": 0.12269
}

Semantic roles & 50–950 ramp

primary
#1F712A
secondary
#A54798
accent
#48CCE0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #1F712A

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

Preview Lab → · Contrast checker → · Palette generator →

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