#1F702A#1F702A

#1F702A is a mid, vivid green. Relative luminance 0.120; OKLCH L 48.1% C 0.130 H 145.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#1F702A
RGBrgb(31, 112, 42)
HSLhsl(128, 57%, 28%)
HSVhsv(128, 72%, 44%)
CMYKcmyk(72.3%, 0%, 62.5%, 56.1%)
CIE-LABlab(41.29, -39.61, 31.42)
CIE-LCHlch(41.29, 50.56, 141.57°)
OKLaboklab(48.07% -0.107 0.0741)
OKLCHoklch(48.07% 0.13 145.3)
XYZxyz(6.7767, 12.0461, 4.1580)
Luminance0.1205 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F702A #701F65
analogous
#3C701F #1F702A #1F7052
triadic
#1F702A #2A1F70 #702A1F
tetradic
#1F702A #1F3C70 #701F65 #70521F
square
#1F702A #1F3C70 #701F65 #70521F
split-complementary
#1F702A #521F70 #701F3C
monochromatic
#071809 #124018 #1F702A #2CA03C #3FCA52

Accessibility & contrast

On white

6.16
#1F702A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#1F702A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F702A
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F702A#FFFFFF#000000##FFFFFF
##1F702A1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726523
Deuteranopia (green-blind)
#685F30
Tritanopia (blue-blind)
#026D61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #1f702a;
/* rgb */ color: rgb(31, 112, 42);
/* oklch */ color: oklch(48.1% 0.130 145.3);
Tailwind
colors: {
  custom: {
    50: '#679a66',
    500: '#1f702a',
    950: '#000000',
  },
}
SCSS
$custom: #1f702a;
$custom-light: #679a66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f702a",
  "rgb": {
    "r": 31,
    "g": 112,
    "b": 42
  },
  "hsl": {
    "h": 128.148,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.48069,
    "c": 0.13014,
    "h": 145.3
  },
  "luminance": 0.12047
}

Semantic roles & 50–950 ramp

primary
#1F702A
secondary
#A44797
accent
#48CBE0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #1F702A

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

Preview Lab → · Contrast checker → · Palette generator →

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