#2B6815#2B6815

#2B6815 is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.9% C 0.130 H 139.0°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2B6815
RGBrgb(43, 104, 21)
HSLhsl(104, 66%, 25%)
HSVhsv(104, 80%, 41%)
CMYKcmyk(58.7%, 0%, 79.8%, 59.2%)
CIE-LABlab(38.67, -35.66, 38.11)
CIE-LCHlch(38.67, 52.19, 133.10°)
OKLaboklab(45.95% -0.0983 0.0854)
OKLCHoklch(45.95% 0.13 139)
XYZxyz(6.0817, 10.4679, 2.4093)
Luminance0.1047 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B6815 #521568
analogous
#556815 #2B6815 #156828
triadic
#2B6815 #152B68 #68152B
tetradic
#2B6815 #155568 #521568 #682815
square
#2B6815 #155568 #521568 #682815
split-complementary
#2B6815 #281568 #681555
monochromatic
#0B1905 #16350B #2B6815 #409B1F #55CE2A

Accessibility & contrast

On white

6.79
#2B6815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2B6815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B6815
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B6815#FFFFFF#000000##FFFFFF
##2B68151.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E04
Deuteranopia (green-blind)
#64591E
Tritanopia (blue-blind)
#256458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2b6815;
/* rgb */ color: rgb(43, 104, 21);
/* oklch */ color: oklch(45.9% 0.130 139.0);
Tailwind
colors: {
  custom: {
    50: '#6c9459',
    500: '#2b6815',
    950: '#000000',
  },
}
SCSS
$custom: #2b6815;
$custom-light: #6c9459;
$custom-dark: #000000;
JSON
{
  "hex": "#2b6815",
  "rgb": {
    "r": 43,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 104.096,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.45948,
    "c": 0.13021,
    "h": 139
  },
  "luminance": 0.10468
}

Semantic roles & 50–950 ramp

primary
#2B6815
secondary
#843A9F
accent
#3EE9BC
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2B6815

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

Preview Lab → · Contrast checker → · Palette generator →

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