#2B4104#2B4104

#2B4104 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.4% C 0.087 H 128.5°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2B4104
RGBrgb(43, 65, 4)
HSLhsl(82, 88%, 14%)
HSVhsv(82, 94%, 25%)
CMYKcmyk(33.8%, 0%, 93.8%, 74.5%)
CIE-LABlab(24.65, -18.82, 31.17)
CIE-LCHlch(24.65, 36.41, 121.12°)
OKLaboklab(34.41% -0.0542 0.0681)
OKLCHoklch(34.41% 0.087 128.5)
XYZxyz(2.9085, 4.3029, 0.7921)
Luminance0.0430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4104 #1A0441
analogous
#413804 #2B4104 #0C4104
triadic
#2B4104 #042B41 #41042B
tetradic
#2B4104 #044138 #1A0441 #41040C
square
#2B4104 #044138 #1A0441 #41040C
split-complementary
#2B4104 #040C41 #380441
monochromatic
#131D02 #131D02 #2B4104 #517B08 #77B40B

Accessibility & contrast

On white

11.29
#2B4104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B4104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4104
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4104#FFFFFF#000000##FFFFFF
##2B41041.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453B00
Deuteranopia (green-blind)
#423A0A
Tritanopia (blue-blind)
#2D3E36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b4104;
/* rgb */ color: rgb(43, 65, 4);
/* oklch */ color: oklch(34.4% 0.087 128.5);
Tailwind
colors: {
  custom: {
    50: '#67754b',
    500: '#2b4104',
    950: '#000000',
  },
}
SCSS
$custom: #2b4104;
$custom-light: #67754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4104",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 4
  },
  "hsl": {
    "h": 81.639,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.34409,
    "c": 0.08702,
    "h": 128.5
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#2B4104
secondary
#431F82
accent
#29FF76
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2B4104

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

Preview Lab → · Contrast checker → · Palette generator →

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