#2B4517#2B4517

#2B4517 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.8% C 0.078 H 133.7°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2B4517
RGBrgb(43, 69, 23)
HSLhsl(94, 50%, 18%)
HSVhsv(94, 67%, 27%)
CMYKcmyk(37.7%, 0%, 66.7%, 72.9%)
CIE-LABlab(26.25, -19.34, 24.16)
CIE-LCHlch(26.25, 30.95, 128.68°)
OKLaboklab(35.76% -0.0538 0.0564)
OKLCHoklch(35.76% 0.078 133.7)
XYZxyz(3.2790, 4.8316, 1.5703)
Luminance0.0483 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4517 #311745
analogous
#424517 #2B4517 #17451A
triadic
#2B4517 #172B45 #45172B
tetradic
#2B4517 #174245 #311745 #451A17
square
#2B4517 #174245 #311745 #451A17
split-complementary
#2B4517 #1A1745 #451742
monochromatic
#0E1708 #0E1708 #2B4517 #487326 #64A136

Accessibility & contrast

On white

10.68
#2B4517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B4517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4517
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4517#FFFFFF#000000##FFFFFF
##2B45171.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F12
Deuteranopia (green-blind)
#443D1A
Tritanopia (blue-blind)
#2B423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b4517;
/* rgb */ color: rgb(43, 69, 23);
/* oklch */ color: oklch(35.8% 0.078 133.7);
Tailwind
colors: {
  custom: {
    50: '#667956',
    500: '#2b4517',
    950: '#000000',
  },
}
SCSS
$custom: #2b4517;
$custom-light: #667956;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4517",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 23
  },
  "hsl": {
    "h": 93.913,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.35764,
    "c": 0.07796,
    "h": 133.7
  },
  "luminance": 0.04832
}

Semantic roles & 50–950 ramp

primary
#2B4517
secondary
#603C7C
accent
#4EDA9D
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2B4517

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

Preview Lab → · Contrast checker → · Palette generator →

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