#2B5917#2B5917

#2B5917 is a dark, moderate green. Relative luminance 0.077; OKLCH L 41.6% C 0.108 H 137.8°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2B5917
RGBrgb(43, 89, 23)
HSLhsl(102, 59%, 22%)
HSVhsv(102, 74%, 35%)
CMYKcmyk(51.7%, 0%, 74.2%, 65.1%)
CIE-LABlab(33.39, -29.08, 31.94)
CIE-LCHlch(33.39, 43.19, 132.31°)
OKLaboklab(41.61% -0.0803 0.0728)
OKLCHoklch(41.61% 0.108 137.8)
XYZxyz(4.7231, 7.7199, 2.0517)
Luminance0.0772 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5917 #451759
analogous
#4C5917 #2B5917 #175924
triadic
#2B5917 #172B59 #59172B
tetradic
#2B5917 #174C59 #451759 #592417
square
#2B5917 #174C59 #451759 #592417
split-complementary
#2B5917 #241759 #59174C
monochromatic
#0C1806 #14280A #2B5917 #428A24 #5ABA30

Accessibility & contrast

On white

8.25
#2B5917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2B5917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5917
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5917#FFFFFF#000000##FFFFFF
##2B59171.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510D
Deuteranopia (green-blind)
#564D1D
Tritanopia (blue-blind)
#28564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b5917;
/* rgb */ color: rgb(43, 89, 23);
/* oklch */ color: oklch(41.6% 0.108 137.8);
Tailwind
colors: {
  custom: {
    50: '#698858',
    500: '#2b5917',
    950: '#000000',
  },
}
SCSS
$custom: #2b5917;
$custom-light: #698858;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5917",
  "rgb": {
    "r": 43,
    "g": 89,
    "b": 23
  },
  "hsl": {
    "h": 101.818,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.41608,
    "c": 0.10845,
    "h": 137.8
  },
  "luminance": 0.0772
}

Semantic roles & 50–950 ramp

primary
#2B5917
secondary
#763C90
accent
#46E2B3
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5917

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

Preview Lab → · Contrast checker → · Palette generator →

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