#2B4004#2B4004

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

Color values

HEX#2B4004
RGBrgb(43, 64, 4)
HSLhsl(81, 88%, 13%)
HSVhsv(81, 94%, 25%)
CMYKcmyk(32.8%, 0%, 93.8%, 74.9%)
CIE-LABlab(24.29, -18.29, 30.81)
CIE-LCHlch(24.29, 35.83, 120.69°)
OKLaboklab(34.12% -0.0528 0.0674)
OKLCHoklch(34.12% 0.086 128.1)
XYZxyz(2.8516, 4.1891, 0.7732)
Luminance0.0419 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4004 #190440
analogous
#403704 #2B4004 #0D4004
triadic
#2B4004 #042B40 #40042B
tetradic
#2B4004 #044037 #190440 #40040D
square
#2B4004 #044037 #190440 #40040D
split-complementary
#2B4004 #040D40 #370440
monochromatic
#131D02 #131D02 #2B4004 #527A08 #78B30B

Accessibility & contrast

On white

11.43
#2B4004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B4004
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4004#FFFFFF#000000##FFFFFF
##2B40041.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b4004;
/* rgb */ color: rgb(43, 64, 4);
/* oklch */ color: oklch(34.1% 0.086 128.1);
Tailwind
colors: {
  custom: {
    50: '#67754b',
    500: '#2b4004',
    950: '#000000',
  },
}
SCSS
$custom: #2b4004;
$custom-light: #67754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4004",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 81,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.34115,
    "c": 0.0856,
    "h": 128.1
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#2B4004
secondary
#411F81
accent
#29FE74
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2B4004

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

Preview Lab → · Contrast checker → · Palette generator →

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