#2B540D#2B540D

#2B540D is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.1% C 0.108 H 135.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2B540D
RGBrgb(43, 84, 13)
HSLhsl(95, 73%, 19%)
HSVhsv(95, 85%, 33%)
CMYKcmyk(48.8%, 0%, 84.5%, 67.1%)
CIE-LABlab(31.54, -27.59, 34.17)
CIE-LCHlch(31.54, 43.92, 128.92°)
OKLaboklab(40.06% -0.0771 0.0759)
OKLCHoklch(40.06% 0.108 135.4)
XYZxyz(4.2391, 6.8830, 1.4859)
Luminance0.0688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B540D #360D54
analogous
#4F540D #2B540D #0D5413
triadic
#2B540D #0D2B54 #540D2B
tetradic
#2B540D #0D4F54 #360D54 #54130D
square
#2B540D #0D4F54 #360D54 #54130D
split-complementary
#2B540D #130D54 #540D4F
monochromatic
#0E1A04 #101F05 #2B540D #468915 #61BE1D

Accessibility & contrast

On white

8.84
#2B540D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2B540D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B540D
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B540D#FFFFFF#000000##FFFFFF
##2B540D1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C00
Deuteranopia (green-blind)
#524915
Tritanopia (blue-blind)
#2A5047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b540d;
/* rgb */ color: rgb(43, 84, 13);
/* oklch */ color: oklch(40.1% 0.108 135.4);
Tailwind
colors: {
  custom: {
    50: '#698452',
    500: '#2b540d',
    950: '#000000',
  },
}
SCSS
$custom: #2b540d;
$custom-light: #698452;
$custom-dark: #000000;
JSON
{
  "hex": "#2b540d",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 94.648,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.40063,
    "c": 0.1082,
    "h": 135.4
  },
  "luminance": 0.06883
}

Semantic roles & 50–950 ramp

primary
#2B540D
secondary
#662E8F
accent
#38F0A2
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B02
muted
#7A7C78

Preview Lab

Preview with #2B540D

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

Preview Lab → · Contrast checker → · Palette generator →

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