#2B5717#2B5717

#2B5717 is a dark, moderate green. Relative luminance 0.074; OKLCH L 41.0% C 0.106 H 137.5°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2B5717
RGBrgb(43, 87, 23)
HSLhsl(101, 58%, 22%)
HSVhsv(101, 74%, 34%)
CMYKcmyk(50.6%, 0%, 73.6%, 65.9%)
CIE-LABlab(32.68, -28.17, 31.19)
CIE-LCHlch(32.68, 42.03, 132.08°)
OKLaboklab(41.03% -0.0779 0.0713)
OKLCHoklch(41.03% 0.106 137.5)
XYZxyz(4.5590, 7.3915, 1.9969)
Luminance0.0739 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5717 #431757
analogous
#4B5717 #2B5717 #175723
triadic
#2B5717 #172B57 #57172B
tetradic
#2B5717 #174B57 #431757 #572317
square
#2B5717 #174B57 #431757 #572317
split-complementary
#2B5717 #231757 #57174B
monochromatic
#0C1806 #13270A #2B5717 #438724 #5BB831

Accessibility & contrast

On white

8.47
#2B5717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2B5717 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5717
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5717#FFFFFF#000000##FFFFFF
##2B57171.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0E
Deuteranopia (green-blind)
#544B1D
Tritanopia (blue-blind)
#28544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b5717;
/* rgb */ color: rgb(43, 87, 23);
/* oklch */ color: oklch(41.0% 0.106 137.5);
Tailwind
colors: {
  custom: {
    50: '#698758',
    500: '#2b5717',
    950: '#000000',
  },
}
SCSS
$custom: #2b5717;
$custom-light: #698758;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5717",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 23
  },
  "hsl": {
    "h": 101.25,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41025,
    "c": 0.10558,
    "h": 137.5
  },
  "luminance": 0.07392
}

Semantic roles & 50–950 ramp

primary
#2B5717
secondary
#743C8E
accent
#46E1B1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5717

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

Preview Lab → · Contrast checker → · Palette generator →

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