#2B540E#2B540E

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

Color values

HEX#2B540E
RGBrgb(43, 84, 14)
HSLhsl(95, 71%, 19%)
HSVhsv(95, 83%, 33%)
CMYKcmyk(48.8%, 0%, 83.3%, 67.1%)
CIE-LABlab(31.55, -27.53, 33.81)
CIE-LCHlch(31.55, 43.60, 129.15°)
OKLaboklab(40.07% -0.0768 0.0753)
OKLCHoklch(40.07% 0.108 135.6)
XYZxyz(4.2457, 6.8857, 1.5207)
Luminance0.0689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B540E #370E54
analogous
#4E540E #2B540E #0E5414
triadic
#2B540E #0E2B54 #540E2B
tetradic
#2B540E #0E4E54 #370E54 #54140E
square
#2B540E #0E4E54 #370E54 #54140E
split-complementary
#2B540E #140E54 #540E4E
monochromatic
#0D1A04 #102005 #2B540E #468817 #61BD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B540E#FFFFFF#000000##FFFFFF
##2B540E1.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)
#574C01
Deuteranopia (green-blind)
#524916
Tritanopia (blue-blind)
#2A5147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b540e;
/* rgb */ color: rgb(43, 84, 14);
/* oklch */ color: oklch(40.1% 0.108 135.6);
Tailwind
colors: {
  custom: {
    50: '#698453',
    500: '#2b540e',
    950: '#000000',
  },
}
SCSS
$custom: #2b540e;
$custom-light: #698453;
$custom-dark: #000000;
JSON
{
  "hex": "#2b540e",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 95.143,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.4007,
    "c": 0.10761,
    "h": 135.6
  },
  "luminance": 0.06886
}

Semantic roles & 50–950 ramp

primary
#2B540E
secondary
#672F8E
accent
#3AEEA3
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B540E

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

Preview Lab → · Contrast checker → · Palette generator →

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