#2A7340#2A7340

#2A7340 is a mid, moderate green. Relative luminance 0.131; OKLCH L 49.6% C 0.108 H 150.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2A7340
RGBrgb(42, 115, 64)
HSLhsl(138, 46%, 31%)
HSVhsv(138, 63%, 45%)
CMYKcmyk(63.5%, 0%, 44.3%, 54.9%)
CIE-LABlab(42.95, -34.87, 21.67)
CIE-LCHlch(42.95, 41.05, 148.15°)
OKLaboklab(49.63% -0.0942 0.0535)
OKLCHoklch(49.63% 0.108 150.4)
XYZxyz(8.0104, 13.1231, 6.9604)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7340 #732A5D
analogous
#38732A #2A7340 #2A7364
triadic
#2A7340 #402A73 #73402A
tetradic
#2A7340 #2A3873 #732A5D #73642A
square
#2A7340 #2A3873 #732A5D #73642A
split-complementary
#2A7340 #642A73 #732A38
monochromatic
#09190E #1A4627 #2A7340 #3AA059 #56C176

Accessibility & contrast

On white

5.79
#2A7340 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#2A7340 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7340
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7340#FFFFFF#000000##FFFFFF
##2A73401.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74693C
Deuteranopia (green-blind)
#6A6343
Tritanopia (blue-blind)
#137166
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7340;
/* rgb */ color: rgb(42, 115, 64);
/* oklch */ color: oklch(49.6% 0.108 150.4);
Tailwind
colors: {
  custom: {
    50: '#6c9c75',
    500: '#2a7340',
    950: '#000000',
  },
}
SCSS
$custom: #2a7340;
$custom-light: #6c9c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7340",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 64
  },
  "hsl": {
    "h": 138.082,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49627,
    "c": 0.10839,
    "h": 150.4
  },
  "luminance": 0.13124
}

Semantic roles & 50–950 ramp

primary
#2A7340
secondary
#A5548C
accent
#52AED6
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2A7340

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

Preview Lab → · Contrast checker → · Palette generator →

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