#2B7040#2B7040

#2B7040 is a mid, moderate green. Relative luminance 0.125; OKLCH L 48.8% C 0.103 H 150.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#2B7040
RGBrgb(43, 112, 64)
HSLhsl(138, 45%, 30%)
HSVhsv(138, 62%, 44%)
CMYKcmyk(61.6%, 0%, 42.9%, 56.1%)
CIE-LABlab(41.96, -33.32, 20.38)
CIE-LCHlch(41.96, 39.06, 148.55°)
OKLaboklab(48.82% -0.0901 0.0505)
OKLCHoklch(48.82% 0.103 150.7)
XYZxyz(7.7153, 12.4714, 6.8501)
Luminance0.1247 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7040 #702B5B
analogous
#38702B #2B7040 #2B7062
triadic
#2B7040 #402B70 #70402B
tetradic
#2B7040 #2B3870 #702B5B #70622B
square
#2B7040 #2B3870 #702B5B #70622B
split-complementary
#2B7040 #622B70 #702B38
monochromatic
#09180D #1A4427 #2B7040 #3C9C59 #57BE76

Accessibility & contrast

On white

6.01
#2B7040 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2B7040 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7040
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7040#FFFFFF#000000##FFFFFF
##2B70401.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71673D
Deuteranopia (green-blind)
#676043
Tritanopia (blue-blind)
#176E64
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b7040;
/* rgb */ color: rgb(43, 112, 64);
/* oklch */ color: oklch(48.8% 0.103 150.7);
Tailwind
colors: {
  custom: {
    50: '#6c9a75',
    500: '#2b7040',
    950: '#000000',
  },
}
SCSS
$custom: #2b7040;
$custom-light: #6c9a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7040",
  "rgb": {
    "r": 43,
    "g": 112,
    "b": 64
  },
  "hsl": {
    "h": 138.261,
    "s": 44.516,
    "l": 30.392
  },
  "oklch": {
    "l": 0.48821,
    "c": 0.10334,
    "h": 150.7
  },
  "luminance": 0.12472
}

Semantic roles & 50–950 ramp

primary
#2B7040
secondary
#A2558A
accent
#54ADD4
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2B7040

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

Preview Lab → · Contrast checker → · Palette generator →

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