#2B7840#2B7840

#2B7840 is a mid, moderate green. Relative luminance 0.143; OKLCH L 51.1% C 0.115 H 149.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#2B7840
RGBrgb(43, 120, 64)
HSLhsl(136, 47%, 32%)
HSVhsv(136, 64%, 47%)
CMYKcmyk(64.2%, 0%, 46.7%, 52.9%)
CIE-LABlab(44.68, -36.77, 23.91)
CIE-LCHlch(44.68, 43.86, 146.97°)
OKLaboklab(51.06% -0.0993 0.0587)
OKLCHoklch(51.06% 0.115 149.4)
XYZxyz(8.6375, 14.3158, 7.1575)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7840 #782B63
analogous
#3D782B #2B7840 #2B7867
triadic
#2B7840 #402B78 #78402B
tetradic
#2B7840 #2B3D78 #782B63 #78672B
square
#2B7840 #2B3D78 #782B63 #78672B
split-complementary
#2B7840 #672B78 #782B3D
monochromatic
#0B1E10 #1B4B28 #2B7840 #3BA558 #5AC477

Accessibility & contrast

On white

5.44
#2B7840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2B7840 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7840
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7840#FFFFFF#000000##FFFFFF
##2B78401.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#13766A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b7840;
/* rgb */ color: rgb(43, 120, 64);
/* oklch */ color: oklch(51.1% 0.115 149.4);
Tailwind
colors: {
  custom: {
    50: '#6da075',
    500: '#2b7840',
    950: '#000000',
  },
}
SCSS
$custom: #2b7840;
$custom-light: #6da075;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7840",
  "rgb": {
    "r": 43,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 136.364,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51062,
    "c": 0.11537,
    "h": 149.4
  },
  "luminance": 0.14317
}

Semantic roles & 50–950 ramp

primary
#2B7840
secondary
#AA5593
accent
#51B2D7
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2B7840

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

Preview Lab → · Contrast checker → · Palette generator →

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