#2F6E1F#2F6E1F

#2F6E1F is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.129 H 139.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2F6E1F
RGBrgb(47, 110, 31)
HSLhsl(108, 56%, 28%)
HSVhsv(108, 72%, 43%)
CMYKcmyk(57.3%, 0%, 71.8%, 56.9%)
CIE-LABlab(40.98, -36.09, 36.43)
CIE-LCHlch(40.98, 51.28, 134.73°)
OKLaboklab(47.92% -0.099 0.0833)
OKLCHoklch(47.92% 0.129 139.9)
XYZxyz(6.9952, 11.8546, 3.2156)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6E1F #5E1F6E
analogous
#566E1F #2F6E1F #1F6E36
triadic
#2F6E1F #1F2F6E #6E1F2F
tetradic
#2F6E1F #1F566E #5E1F6E #6E361F
square
#2F6E1F #1F566E #5E1F6E #6E361F
split-complementary
#2F6E1F #361F6E #6E1F56
monochromatic
#0A1807 #1B3E12 #2F6E1F #439E2C #5BC93F

Accessibility & contrast

On white

6.23
#2F6E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2F6E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6E1F
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6E1F#FFFFFF#000000##FFFFFF
##2F6E1F1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716414
Deuteranopia (green-blind)
#695F26
Tritanopia (blue-blind)
#286A5E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f6e1f;
/* rgb */ color: rgb(47, 110, 31);
/* oklch */ color: oklch(47.9% 0.129 139.9);
Tailwind
colors: {
  custom: {
    50: '#6f985f',
    500: '#2f6e1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f6e1f;
$custom-light: #6f985f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6e1f",
  "rgb": {
    "r": 47,
    "g": 110,
    "b": 31
  },
  "hsl": {
    "h": 107.848,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.47923,
    "c": 0.12943,
    "h": 139.9
  },
  "luminance": 0.11855
}

Semantic roles & 50–950 ramp

primary
#2F6E1F
secondary
#9047A2
accent
#48DFC1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2F6E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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