#2B4811#2B4811

#2B4811 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.088 H 133.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2B4811
RGBrgb(43, 72, 17)
HSLhsl(92, 62%, 17%)
HSVhsv(92, 76%, 28%)
CMYKcmyk(40.3%, 0%, 76.4%, 71.8%)
CIE-LABlab(27.27, -21.51, 28.29)
CIE-LCHlch(27.27, 35.53, 127.25°)
OKLaboklab(36.57% -0.0603 0.0643)
OKLCHoklch(36.57% 0.088 133.2)
XYZxyz(3.4147, 5.1886, 1.3518)
Luminance0.0519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4811 #2E1148
analogous
#474811 #2B4811 #114812
triadic
#2B4811 #112B48 #48112B
tetradic
#2B4811 #114748 #2E1148 #481211
square
#2B4811 #114748 #2E1148 #481211
split-complementary
#2B4811 #121148 #481147
monochromatic
#0F1906 #0F1906 #2B4811 #497A1D #66AB28

Accessibility & contrast

On white

10.31
#2B4811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B4811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4811
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4811#FFFFFF#000000##FFFFFF
##2B48111.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4209
Deuteranopia (green-blind)
#474016
Tritanopia (blue-blind)
#2B453D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b4811;
/* rgb */ color: rgb(43, 72, 17);
/* oklch */ color: oklch(36.6% 0.088 133.2);
Tailwind
colors: {
  custom: {
    50: '#677b53',
    500: '#2b4811',
    950: '#000000',
  },
}
SCSS
$custom: #2b4811;
$custom-light: #677b53;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4811",
  "rgb": {
    "r": 43,
    "g": 72,
    "b": 17
  },
  "hsl": {
    "h": 91.636,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36573,
    "c": 0.08812,
    "h": 133.2
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#2B4811
secondary
#5D3382
accent
#43E598
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2B4811

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

Preview Lab → · Contrast checker → · Palette generator →

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