#2B6818#2B6818

#2B6818 is a mid, vivid green. Relative luminance 0.105; OKLCH L 46.0% C 0.128 H 139.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2B6818
RGBrgb(43, 104, 24)
HSLhsl(106, 63%, 25%)
HSVhsv(106, 77%, 41%)
CMYKcmyk(58.7%, 0%, 76.9%, 59.2%)
CIE-LABlab(38.69, -35.42, 36.96)
CIE-LCHlch(38.69, 51.20, 133.78°)
OKLaboklab(45.97% -0.0974 0.0835)
OKLCHoklch(45.97% 0.128 139.4)
XYZxyz(6.1112, 10.4797, 2.5647)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B6818 #551868
analogous
#536818 #2B6818 #18682D
triadic
#2B6818 #182B68 #68182B
tetradic
#2B6818 #185368 #551868 #682D18
square
#2B6818 #185368 #551868 #682D18
split-complementary
#2B6818 #2D1868 #681853
monochromatic
#0A1906 #16360D #2B6818 #409A23 #54CB2F

Accessibility & contrast

On white

6.78
#2B6818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2B6818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B6818
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B6818#FFFFFF#000000##FFFFFF
##2B68181.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E09
Deuteranopia (green-blind)
#635920
Tritanopia (blue-blind)
#256458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2b6818;
/* rgb */ color: rgb(43, 104, 24);
/* oklch */ color: oklch(46.0% 0.128 139.4);
Tailwind
colors: {
  custom: {
    50: '#6c945b',
    500: '#2b6818',
    950: '#000000',
  },
}
SCSS
$custom: #2b6818;
$custom-light: #6c945b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b6818",
  "rgb": {
    "r": 43,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 105.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.12832,
    "h": 139.4
  },
  "luminance": 0.1048
}

Semantic roles & 50–950 ramp

primary
#2B6818
secondary
#873E9E
accent
#42E6BF
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2B6818

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

Preview Lab → · Contrast checker → · Palette generator →

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