#2F8D1F#2F8D1F

#2F8D1F is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.168 H 141.1°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#2F8D1F
RGBrgb(47, 141, 31)
HSLhsl(111, 64%, 34%)
HSVhsv(111, 78%, 55%)
CMYKcmyk(66.7%, 0%, 78%, 44.7%)
CIE-LABlab(51.56, -47.94, 47.16)
CIE-LCHlch(51.56, 67.25, 135.47°)
OKLaboklab(56.66% -0.131 0.1058)
OKLCHoklch(56.66% 0.168 141.1)
XYZxyz(10.9439, 19.7519, 4.5318)
Luminance0.1975 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8D1F #7D1F8D
analogous
#668D1F #2F8D1F #1F8D46
triadic
#2F8D1F #1F2F8D #8D1F2F
tetradic
#2F8D1F #1F668D #7D1F8D #8D461F
square
#2F8D1F #1F668D #7D1F8D #8D461F
split-complementary
#2F8D1F #461F8D #8D1F66
monochromatic
#0E2909 #1E5B14 #2F8D1F #40BF2A #62D84E

Accessibility & contrast

On white

4.24
#2F8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#2F8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8D1F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8D1F#FFFFFF#000000##000000
##2F8D1F1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918005
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#1E8878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f8d1f;
/* rgb */ color: rgb(47, 141, 31);
/* oklch */ color: oklch(56.7% 0.168 141.1);
Tailwind
colors: {
  custom: {
    50: '#75af63',
    500: '#2f8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f8d1f;
$custom-light: #75af63;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8d1f",
  "rgb": {
    "r": 47,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 111.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5666,
    "c": 0.16842,
    "h": 141.1
  },
  "luminance": 0.19753
}

Semantic roles & 50–950 ramp

primary
#2F8D1F
secondary
#AB4DBB
accent
#41E7CF
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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