#1F7239#1F7239

#1F7239 is a mid, moderate green. Relative luminance 0.126; OKLCH L 48.9% C 0.119 H 149.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#1F7239
RGBrgb(31, 114, 57)
HSLhsl(139, 57%, 28%)
HSVhsv(139, 73%, 45%)
CMYKcmyk(72.8%, 0%, 50%, 55.3%)
CIE-LABlab(42.19, -38.07, 24.55)
CIE-LCHlch(42.19, 45.30, 147.18°)
OKLaboklab(48.88% -0.1025 0.0599)
OKLCHoklch(48.88% 0.119 149.7)
XYZxyz(7.3203, 12.6205, 5.9203)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7239 #721F58
analogous
#2E721F #1F7239 #1F7262
triadic
#1F7239 #391F72 #72391F
tetradic
#1F7239 #1F2E72 #721F58 #72621F
square
#1F7239 #1F2E72 #721F58 #72621F
split-complementary
#1F7239 #621F72 #721F2E
monochromatic
#07180C #124221 #1F7239 #2CA251 #40CB6C

Accessibility & contrast

On white

5.96
#1F7239 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#1F7239 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7239
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7239#FFFFFF#000000##FFFFFF
##1F72391.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736834
Deuteranopia (green-blind)
#69613D
Tritanopia (blue-blind)
#007065
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7239;
/* rgb */ color: rgb(31, 114, 57);
/* oklch */ color: oklch(48.9% 0.119 149.7);
Tailwind
colors: {
  custom: {
    50: '#679b70',
    500: '#1f7239',
    950: '#000000',
  },
}
SCSS
$custom: #1f7239;
$custom-light: #679b70;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7239",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 57
  },
  "hsl": {
    "h": 138.795,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.48875,
    "c": 0.11874,
    "h": 149.7
  },
  "luminance": 0.12621
}

Semantic roles & 50–950 ramp

primary
#1F7239
secondary
#A64788
accent
#47B1E0
background
#F6F9F6
surface
#EBF2EC
border
#C6CCC7
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #1F7239

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

Preview Lab → · Contrast checker → · Palette generator →

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