#2F8A1F#2F8A1F

#2F8A1F is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.165 H 141.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#2F8A1F
RGBrgb(47, 138, 31)
HSLhsl(111, 63%, 33%)
HSVhsv(111, 78%, 54%)
CMYKcmyk(65.9%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.55, -46.86, 46.17)
CIE-LCHlch(50.55, 65.79, 135.43°)
OKLaboklab(55.82% -0.1281 0.1037)
OKLCHoklch(55.82% 0.165 141)
XYZxyz(10.5076, 18.8792, 4.3864)
Luminance0.1888 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8A1F #7A1F8A
analogous
#648A1F #2F8A1F #1F8A44
triadic
#2F8A1F #1F2F8A #8A1F2F
tetradic
#2F8A1F #1F648A #7A1F8A #8A441F
square
#2F8A1F #1F648A #7A1F8A #8A441F
split-complementary
#2F8A1F #441F8A #8A1F64
monochromatic
#0D2609 #1E5814 #2F8A1F #40BC2A #61D74C

Accessibility & contrast

On white

4.40
#2F8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#2F8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8A1F
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8A1F#FFFFFF#000000##000000
##2F8A1F1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D07
Deuteranopia (green-blind)
#83762B
Tritanopia (blue-blind)
#1F8576
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f8a1f;
/* rgb */ color: rgb(47, 138, 31);
/* oklch */ color: oklch(55.8% 0.165 141.0);
Tailwind
colors: {
  custom: {
    50: '#74ad63',
    500: '#2f8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f8a1f;
$custom-light: #74ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8a1f",
  "rgb": {
    "r": 47,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 111.028,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55824,
    "c": 0.16486,
    "h": 141
  },
  "luminance": 0.1888
}

Semantic roles & 50–950 ramp

primary
#2F8A1F
secondary
#A94BBA
accent
#41E6CE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#2F8A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva