#2B4005#2B4005

#2B4005 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.1% C 0.085 H 128.2°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2B4005
RGBrgb(43, 64, 5)
HSLhsl(81, 86%, 14%)
HSVhsv(81, 92%, 25%)
CMYKcmyk(32.8%, 0%, 92.2%, 74.9%)
CIE-LABlab(24.29, -18.22, 30.41)
CIE-LCHlch(24.29, 35.45, 120.92°)
OKLaboklab(34.12% -0.0525 0.0667)
OKLCHoklch(34.12% 0.085 128.2)
XYZxyz(2.8571, 4.1913, 0.8020)
Luminance0.0419 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4005 #1A0540
analogous
#403705 #2B4005 #0D4005
triadic
#2B4005 #052B40 #40052B
tetradic
#2B4005 #054037 #1A0540 #40050D
square
#2B4005 #054037 #1A0540 #40050D
split-complementary
#2B4005 #050D40 #370540
monochromatic
#131C02 #131C02 #2B4005 #517909 #77B20E

Accessibility & contrast

On white

11.42
#2B4005 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B4005 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4005
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4005#FFFFFF#000000##FFFFFF
##2B40051.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#41390B
Tritanopia (blue-blind)
#2D3D35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b4005;
/* rgb */ color: rgb(43, 64, 5);
/* oklch */ color: oklch(34.1% 0.085 128.2);
Tailwind
colors: {
  custom: {
    50: '#67754b',
    500: '#2b4005',
    950: '#000000',
  },
}
SCSS
$custom: #2b4005;
$custom-light: #67754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4005",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 5
  },
  "hsl": {
    "h": 81.356,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.34123,
    "c": 0.08488,
    "h": 128.2
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#2B4005
secondary
#432081
accent
#2CFC76
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2B4005

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

Preview Lab → · Contrast checker → · Palette generator →

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