#1F942F#1F942F

#1F942F is a mid, vivid green. Relative luminance 0.217; OKLCH L 58.4% C 0.172 H 144.7°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#1F942F
RGBrgb(31, 148, 47)
HSLhsl(128, 65%, 35%)
HSVhsv(128, 79%, 58%)
CMYKcmyk(79.1%, 0%, 68.2%, 42%)
CIE-LABlab(53.68, -51.85, 42.96)
CIE-LCHlch(53.68, 67.34, 140.36°)
OKLaboklab(58.36% -0.14 0.0992)
OKLCHoklch(58.36% 0.172 144.7)
XYZxyz(11.6673, 21.6750, 6.2576)
Luminance0.2168 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F942F #941F84
analogous
#4A941F #1F942F #1F9469
triadic
#1F942F #2F1F94 #942F1F
tetradic
#1F942F #1F4A94 #941F84 #94691F
square
#1F942F #1F4A94 #941F84 #94691F
split-complementary
#1F942F #691F94 #941F4A
monochromatic
#0A2F0F #14611F #1F942F #2AC73F #53DB65

Accessibility & contrast

On white

3.94
#1F942F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#1F942F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F942F
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F942F#FFFFFF#000000##000000
##1F942F1.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978622
Deuteranopia (green-blind)
#8A7D38
Tritanopia (blue-blind)
#00907F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #1f942f;
/* rgb */ color: rgb(31, 148, 47);
/* oklch */ color: oklch(58.4% 0.172 144.7);
Tailwind
colors: {
  custom: {
    50: '#70b56c',
    500: '#1f942f',
    950: '#000000',
  },
}
SCSS
$custom: #1f942f;
$custom-light: #70b56c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f942f",
  "rgb": {
    "r": 31,
    "g": 148,
    "b": 47
  },
  "hsl": {
    "h": 128.205,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58361,
    "c": 0.17158,
    "h": 144.7
  },
  "luminance": 0.21676
}

Semantic roles & 50–950 ramp

primary
#1F942F
secondary
#BE51AF
accent
#3FD1E8
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F942F

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

Preview Lab → · Contrast checker → · Palette generator →

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