#2B731B#2B731B

#2B731B is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.2% C 0.141 H 140.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#2B731B
RGBrgb(43, 115, 27)
HSLhsl(109, 62%, 28%)
HSVhsv(109, 77%, 45%)
CMYKcmyk(62.6%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.54, -39.56, 39.66)
CIE-LCHlch(42.54, 56.02, 134.93°)
OKLaboklab(49.16% -0.1084 0.0896)
OKLCHoklch(49.16% 0.141 140.4)
XYZxyz(7.3245, 12.8535, 3.1317)
Luminance0.1285 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B731B #631B73
analogous
#57731B #2B731B #1B7337
triadic
#2B731B #1B2B73 #731B2B
tetradic
#2B731B #1B5773 #631B73 #73371B
square
#2B731B #1B5773 #631B73 #73371B
split-complementary
#2B731B #371B73 #731B57
monochromatic
#091906 #18410F #2B731B #3EA527 #54D038

Accessibility & contrast

On white

5.88
#2B731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2B731B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B731B
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B731B#FFFFFF#000000##FFFFFF
##2B731B1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680A
Deuteranopia (green-blind)
#6D6224
Tritanopia (blue-blind)
#216F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b731b;
/* rgb */ color: rgb(43, 115, 27);
/* oklch */ color: oklch(49.2% 0.141 140.4);
Tailwind
colors: {
  custom: {
    50: '#6e9c5e',
    500: '#2b731b',
    950: '#000000',
  },
}
SCSS
$custom: #2b731b;
$custom-light: #6e9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b731b",
  "rgb": {
    "r": 43,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 109.091,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49159,
    "c": 0.14063,
    "h": 140.4
  },
  "luminance": 0.12854
}

Semantic roles & 50–950 ramp

primary
#2B731B
secondary
#9542A8
accent
#43E5C8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2B731B

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

Preview Lab → · Contrast checker → · Palette generator →

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