#1F7229#1F7229

#1F7229 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.6% C 0.134 H 145.0°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#1F7229
RGBrgb(31, 114, 41)
HSLhsl(127, 57%, 28%)
HSVhsv(127, 73%, 45%)
CMYKcmyk(72.8%, 0%, 64%, 55.3%)
CIE-LABlab(41.98, -40.50, 32.71)
CIE-LCHlch(41.98, 52.06, 141.07°)
OKLaboklab(48.64% -0.1095 0.0768)
OKLCHoklch(48.64% 0.134 145)
XYZxyz(6.9822, 12.4853, 4.1393)
Luminance0.1249 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7229 #721F68
analogous
#3E721F #1F7229 #1F7252
triadic
#1F7229 #291F72 #72291F
tetradic
#1F7229 #1F3E72 #721F68 #72521F
square
#1F7229 #1F3E72 #721F68 #72521F
split-complementary
#1F7229 #521F72 #721F3E
monochromatic
#071809 #124218 #1F7229 #2CA23A #40CB51

Accessibility & contrast

On white

6.00
#1F7229 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#1F7229 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7229
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7229#FFFFFF#000000##FFFFFF
##1F72291.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746721
Deuteranopia (green-blind)
#6A602F
Tritanopia (blue-blind)
#016F62
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7229;
/* rgb */ color: rgb(31, 114, 41);
/* oklch */ color: oklch(48.6% 0.134 145.0);
Tailwind
colors: {
  custom: {
    50: '#689b66',
    500: '#1f7229',
    950: '#000000',
  },
}
SCSS
$custom: #1f7229;
$custom-light: #689b66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7229",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 41
  },
  "hsl": {
    "h": 127.229,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.48635,
    "c": 0.13369,
    "h": 145
  },
  "luminance": 0.12486
}

Semantic roles & 50–950 ramp

primary
#1F7229
secondary
#A6479A
accent
#47CEE0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #1F7229

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

Preview Lab → · Contrast checker → · Palette generator →

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