#2B4917#2B4917

#2B4917 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.084 H 134.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#2B4917
RGBrgb(43, 73, 23)
HSLhsl(96, 52%, 19%)
HSVhsv(96, 68%, 29%)
CMYKcmyk(41.1%, 0%, 68.5%, 71.4%)
CIE-LABlab(27.68, -21.42, 25.77)
CIE-LCHlch(27.68, 33.51, 129.73°)
OKLaboklab(36.93% -0.0595 0.0598)
OKLCHoklch(36.93% 0.084 134.9)
XYZxyz(3.5334, 5.3404, 1.6551)
Luminance0.0534 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4917 #351749
analogous
#444917 #2B4917 #17491C
triadic
#2B4917 #172B49 #49172B
tetradic
#2B4917 #174449 #351749 #491C17
square
#2B4917 #174449 #351749 #491C17
split-complementary
#2B4917 #1C1749 #491744
monochromatic
#0E1707 #101A08 #2B4917 #467826 #62A634

Accessibility & contrast

On white

10.15
#2B4917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2B4917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4917
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4917#FFFFFF#000000##FFFFFF
##2B49171.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4311
Deuteranopia (green-blind)
#48401B
Tritanopia (blue-blind)
#2B463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b4917;
/* rgb */ color: rgb(43, 73, 23);
/* oklch */ color: oklch(36.9% 0.084 134.9);
Tailwind
colors: {
  custom: {
    50: '#677c56',
    500: '#2b4917',
    950: '#000000',
  },
}
SCSS
$custom: #2b4917;
$custom-light: #677c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4917",
  "rgb": {
    "r": 43,
    "g": 73,
    "b": 23
  },
  "hsl": {
    "h": 96,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.36933,
    "c": 0.08439,
    "h": 134.9
  },
  "luminance": 0.05341
}

Semantic roles & 50–950 ramp

primary
#2B4917
secondary
#653C80
accent
#4CDCA2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2B4917

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

Preview Lab → · Contrast checker → · Palette generator →

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