#2F8B1F#2F8B1F

#2F8B1F is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.1% C 0.166 H 141.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2F8B1F
RGBrgb(47, 139, 31)
HSLhsl(111, 64%, 33%)
HSVhsv(111, 78%, 55%)
CMYKcmyk(66.2%, 0%, 77.7%, 45.5%)
CIE-LABlab(50.88, -47.22, 46.50)
CIE-LCHlch(50.88, 66.28, 135.44°)
OKLaboklab(56.1% -0.1291 0.1044)
OKLCHoklch(56.1% 0.166 141)
XYZxyz(10.6517, 19.1674, 4.4344)
Luminance0.1917 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8B1F #7B1F8B
analogous
#658B1F #2F8B1F #1F8B45
triadic
#2F8B1F #1F2F8B #8B1F2F
tetradic
#2F8B1F #1F658B #7B1F8B #8B451F
square
#2F8B1F #1F658B #7B1F8B #8B451F
split-complementary
#2F8B1F #451F8B #8B1F65
monochromatic
#0D2709 #1E5914 #2F8B1F #40BD2A #62D74D

Accessibility & contrast

On white

4.34
#2F8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#2F8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8B1F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8B1F#FFFFFF#000000##000000
##2F8B1F1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#84762B
Tritanopia (blue-blind)
#1F8676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2f8b1f;
/* rgb */ color: rgb(47, 139, 31);
/* oklch */ color: oklch(56.1% 0.166 141.0);
Tailwind
colors: {
  custom: {
    50: '#75ae63',
    500: '#2f8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f8b1f;
$custom-light: #75ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8b1f",
  "rgb": {
    "r": 47,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 111.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56103,
    "c": 0.16605,
    "h": 141
  },
  "luminance": 0.19169
}

Semantic roles & 50–950 ramp

primary
#2F8B1F
secondary
#AA4CBA
accent
#41E7CE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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