#2B4008#2B4008

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

Color values

HEX#2B4008
RGBrgb(43, 64, 8)
HSLhsl(83, 78%, 14%)
HSVhsv(83, 88%, 25%)
CMYKcmyk(32.8%, 0%, 87.5%, 74.9%)
CIE-LABlab(24.31, -18.01, 29.21)
CIE-LCHlch(24.31, 34.32, 121.65°)
OKLaboklab(34.15% -0.0516 0.0647)
OKLCHoklch(34.15% 0.083 128.6)
XYZxyz(2.8735, 4.1978, 0.8886)
Luminance0.0420 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4008 #1D0840
analogous
#403908 #2B4008 #0F4008
triadic
#2B4008 #082B40 #40082B
tetradic
#2B4008 #084039 #1D0840 #40080F
square
#2B4008 #084039 #1D0840 #40080F
split-complementary
#2B4008 #080F40 #390840
monochromatic
#121B03 #121B03 #2B4008 #50760F #74AD16

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B4008#FFFFFF#000000##FFFFFF
##2B40081.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)
#41390E
Tritanopia (blue-blind)
#2D3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b4008;
/* rgb */ color: rgb(43, 64, 8);
/* oklch */ color: oklch(34.1% 0.083 128.6);
Tailwind
colors: {
  custom: {
    50: '#67754d',
    500: '#2b4008',
    950: '#000000',
  },
}
SCSS
$custom: #2b4008;
$custom-light: #67754d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4008",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 8
  },
  "hsl": {
    "h": 82.5,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34147,
    "c": 0.08274,
    "h": 128.6
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#2B4008
secondary
#47257E
accent
#34F47C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2B4008

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

Preview Lab → · Contrast checker → · Palette generator →

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