#2B4815#2B4815

#2B4815 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.085 H 134.1°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2B4815
RGBrgb(43, 72, 21)
HSLhsl(94, 55%, 18%)
HSVhsv(94, 71%, 28%)
CMYKcmyk(40.3%, 0%, 70.8%, 71.8%)
CIE-LABlab(27.30, -21.12, 26.38)
CIE-LCHlch(27.30, 33.79, 128.68°)
OKLaboklab(36.62% -0.0589 0.0609)
OKLCHoklch(36.62% 0.085 134.1)
XYZxyz(3.4489, 5.2023, 1.5317)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4815 #321548
analogous
#444815 #2B4815 #154818
triadic
#2B4815 #152B48 #48152B
tetradic
#2B4815 #154448 #321548 #481815
square
#2B4815 #154448 #321548 #481815
split-complementary
#2B4815 #181548 #481544
monochromatic
#0E1807 #0F1907 #2B4815 #477723 #64A731

Accessibility & contrast

On white

10.29
#2B4815 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B4815 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4815
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4815#FFFFFF#000000##FFFFFF
##2B48151.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420F
Deuteranopia (green-blind)
#474019
Tritanopia (blue-blind)
#2B453D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b4815;
/* rgb */ color: rgb(43, 72, 21);
/* oklch */ color: oklch(36.6% 0.085 134.1);
Tailwind
colors: {
  custom: {
    50: '#677b55',
    500: '#2b4815',
    950: '#000000',
  },
}
SCSS
$custom: #2b4815;
$custom-light: #677b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4815",
  "rgb": {
    "r": 43,
    "g": 72,
    "b": 21
  },
  "hsl": {
    "h": 94.118,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.36616,
    "c": 0.08468,
    "h": 134.1
  },
  "luminance": 0.05202
}

Semantic roles & 50–950 ramp

primary
#2B4815
secondary
#613980
accent
#4ADE9E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2B4815

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

Preview Lab → · Contrast checker → · Palette generator →

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