#2F6540#2F6540

#2F6540 is a mid, moderate green. Relative luminance 0.103; OKLCH L 45.9% C 0.084 H 152.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2F6540
RGBrgb(47, 101, 64)
HSLhsl(139, 36%, 29%)
HSVhsv(139, 53%, 40%)
CMYKcmyk(53.5%, 0%, 36.6%, 60.4%)
CIE-LABlab(38.34, -27.17, 15.62)
CIE-LCHlch(38.34, 31.34, 150.11°)
OKLaboklab(45.9% -0.0739 0.0392)
OKLCHoklch(45.9% 0.084 152)
XYZxyz(6.7509, 10.2813, 6.4782)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6540 #652F54
analogous
#39652F #2F6540 #2F655B
triadic
#2F6540 #402F65 #65402F
tetradic
#2F6540 #2F3965 #652F54 #655B2F
square
#2F6540 #2F3965 #652F54 #655B2F
split-complementary
#2F6540 #5B2F65 #652F39
monochromatic
#0A150D #1C3B26 #2F6540 #428F5A #5BB377

Accessibility & contrast

On white

6.87
#2F6540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2F6540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6540
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6540#FFFFFF#000000##FFFFFF
##2F65401.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655D3E
Deuteranopia (green-blind)
#5E5842
Tritanopia (blue-blind)
#23645B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f6540;
/* rgb */ color: rgb(47, 101, 64);
/* oklch */ color: oklch(45.9% 0.084 152.0);
Tailwind
colors: {
  custom: {
    50: '#6c9175',
    500: '#2f6540',
    950: '#000000',
  },
}
SCSS
$custom: #2f6540;
$custom-light: #6c9175;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6540",
  "rgb": {
    "r": 47,
    "g": 101,
    "b": 64
  },
  "hsl": {
    "h": 138.889,
    "s": 36.486,
    "l": 29.02
  },
  "oklch": {
    "l": 0.45904,
    "c": 0.08366,
    "h": 152
  },
  "luminance": 0.10282
}

Semantic roles & 50–950 ramp

primary
#2F6540
secondary
#975983
accent
#5BA9CC
background
#F6F8F7
surface
#ECF0ED
border
#C7CBC8
text
#070D08
muted
#7A7D7B

Preview Lab

Preview with #2F6540

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

Preview Lab → · Contrast checker → · Palette generator →

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