#2B5E12#2B5E12

#2B5E12 is a dark, moderate green. Relative luminance 0.086; OKLCH L 43.0% C 0.119 H 137.6°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2B5E12
RGBrgb(43, 94, 18)
HSLhsl(100, 68%, 22%)
HSVhsv(100, 81%, 37%)
CMYKcmyk(54.3%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.13, -31.69, 35.77)
CIE-LCHlch(35.13, 47.79, 131.54°)
OKLaboklab(43.02% -0.0878 0.0801)
OKLCHoklch(43.02% 0.119 137.6)
XYZxyz(5.1080, 8.5623, 1.9557)
Luminance0.0856 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5E12 #45125E
analogous
#515E12 #2B5E12 #125E1F
triadic
#2B5E12 #122B5E #5E122B
tetradic
#2B5E12 #12515E #45125E #5E1F12
square
#2B5E12 #12515E #45125E #5E1F12
split-complementary
#2B5E12 #1F125E #5E1251
monochromatic
#0C1A05 #142B08 #2B5E12 #42911C #5AC526

Accessibility & contrast

On white

7.74
#2B5E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2B5E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5E12
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5E12#FFFFFF#000000##FFFFFF
##2B5E121.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#275A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2b5e12;
/* rgb */ color: rgb(43, 94, 18);
/* oklch */ color: oklch(43.0% 0.119 137.6);
Tailwind
colors: {
  custom: {
    50: '#6a8c56',
    500: '#2b5e12',
    950: '#000000',
  },
}
SCSS
$custom: #2b5e12;
$custom-light: #6a8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5e12",
  "rgb": {
    "r": 43,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 100.263,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43023,
    "c": 0.11883,
    "h": 137.6
  },
  "luminance": 0.08563
}

Semantic roles & 50–950 ramp

primary
#2B5E12
secondary
#763596
accent
#3DEBB2
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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