#2F6B1F#2F6B1F

#2F6B1F is a mid, vivid green. Relative luminance 0.112; OKLCH L 47.1% C 0.125 H 139.7°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#2F6B1F
RGBrgb(47, 107, 31)
HSLhsl(107, 55%, 27%)
HSVhsv(107, 71%, 42%)
CMYKcmyk(56.1%, 0%, 71%, 58%)
CIE-LABlab(39.95, -34.84, 35.32)
CIE-LCHlch(39.95, 49.61, 134.60°)
OKLaboklab(47.07% -0.0956 0.081)
OKLCHoklch(47.07% 0.125 139.7)
XYZxyz(6.6770, 11.2181, 3.1095)
Luminance0.1122 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6B1F #5B1F6B
analogous
#556B1F #2F6B1F #1F6B35
triadic
#2F6B1F #1F2F6B #6B1F2F
tetradic
#2F6B1F #1F556B #5B1F6B #6B351F
square
#2F6B1F #1F556B #5B1F6B #6B351F
split-complementary
#2F6B1F #351F6B #6B1F55
monochromatic
#0A1807 #1A3C11 #2F6B1F #449A2D #5AC73D

Accessibility & contrast

On white

6.47
#2F6B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2F6B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6B1F
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6B1F#FFFFFF#000000##FFFFFF
##2F6B1F1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6114
Deuteranopia (green-blind)
#665C26
Tritanopia (blue-blind)
#29675C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f6b1f;
/* rgb */ color: rgb(47, 107, 31);
/* oklch */ color: oklch(47.1% 0.125 139.7);
Tailwind
colors: {
  custom: {
    50: '#6e965f',
    500: '#2f6b1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f6b1f;
$custom-light: #6e965f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6b1f",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 31
  },
  "hsl": {
    "h": 107.368,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.47067,
    "c": 0.12534,
    "h": 139.7
  },
  "luminance": 0.11219
}

Semantic roles & 50–950 ramp

primary
#2F6B1F
secondary
#8D479F
accent
#49DEBF
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080D05
muted
#7B7E79

Preview Lab

Preview with #2F6B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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