#2B540F#2B540F

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

Color values

HEX#2B540F
RGBrgb(43, 84, 15)
HSLhsl(96, 70%, 19%)
HSVhsv(96, 82%, 33%)
CMYKcmyk(48.8%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.55, -27.46, 33.44)
CIE-LCHlch(31.55, 43.27, 129.39°)
OKLaboklab(40.08% -0.0766 0.0747)
OKLCHoklch(40.08% 0.107 135.7)
XYZxyz(4.2527, 6.8885, 1.5574)
Luminance0.0689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B540F #380F54
analogous
#4E540F #2B540F #0F5416
triadic
#2B540F #0F2B54 #540F2B
tetradic
#2B540F #0F4E54 #380F54 #54160F
square
#2B540F #0F4E54 #380F54 #54160F
split-complementary
#2B540F #160F54 #540F4E
monochromatic
#0D1A05 #102006 #2B540F #468818 #60BC22

Accessibility & contrast

On white

8.83
#2B540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B540F
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B540F#FFFFFF#000000##FFFFFF
##2B540F1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C02
Deuteranopia (green-blind)
#524916
Tritanopia (blue-blind)
#2A5147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b540f;
/* rgb */ color: rgb(43, 84, 15);
/* oklch */ color: oklch(40.1% 0.107 135.7);
Tailwind
colors: {
  custom: {
    50: '#698453',
    500: '#2b540f',
    950: '#000000',
  },
}
SCSS
$custom: #2b540f;
$custom-light: #698453;
$custom-dark: #000000;
JSON
{
  "hex": "#2b540f",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 95.652,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40077,
    "c": 0.10699,
    "h": 135.7
  },
  "luminance": 0.06889
}

Semantic roles & 50–950 ramp

primary
#2B540F
secondary
#68318E
accent
#3BEDA5
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B540F

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

Preview Lab → · Contrast checker → · Palette generator →

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