#2B4518#2B4518

#2B4518 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.8% C 0.077 H 134.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2B4518
RGBrgb(43, 69, 24)
HSLhsl(95, 48%, 18%)
HSVhsv(95, 65%, 27%)
CMYKcmyk(37.7%, 0%, 65.2%, 72.9%)
CIE-LABlab(26.26, -19.22, 23.63)
CIE-LCHlch(26.26, 30.46, 129.13°)
OKLaboklab(35.78% -0.0534 0.0554)
OKLCHoklch(35.78% 0.077 134)
XYZxyz(3.2892, 4.8357, 1.6240)
Luminance0.0484 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4518 #321845
analogous
#414518 #2B4518 #18451B
triadic
#2B4518 #182B45 #45182B
tetradic
#2B4518 #184145 #321845 #451B18
square
#2B4518 #184145 #321845 #451B18
split-complementary
#2B4518 #1B1845 #451841
monochromatic
#0E1708 #0F1808 #2B4518 #477228 #64A038

Accessibility & contrast

On white

10.68
#2B4518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B4518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4518
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4518#FFFFFF#000000##FFFFFF
##2B45181.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F13
Deuteranopia (green-blind)
#443D1B
Tritanopia (blue-blind)
#2B423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b4518;
/* rgb */ color: rgb(43, 69, 24);
/* oklch */ color: oklch(35.8% 0.077 134.0);
Tailwind
colors: {
  custom: {
    50: '#667957',
    500: '#2b4518',
    950: '#000000',
  },
}
SCSS
$custom: #2b4518;
$custom-light: #667957;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4518",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 24
  },
  "hsl": {
    "h": 94.667,
    "s": 48.387,
    "l": 18.235
  },
  "oklch": {
    "l": 0.35778,
    "c": 0.07694,
    "h": 134
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

primary
#2B4518
secondary
#613D7C
accent
#50D89E
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2B4518

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

Preview Lab → · Contrast checker → · Palette generator →

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