#2B5817#2B5817

#2B5817 is a dark, moderate green. Relative luminance 0.076; OKLCH L 41.3% C 0.107 H 137.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2B5817
RGBrgb(43, 88, 23)
HSLhsl(102, 59%, 22%)
HSVhsv(102, 74%, 35%)
CMYKcmyk(51.1%, 0%, 73.9%, 65.5%)
CIE-LABlab(33.04, -28.62, 31.57)
CIE-LCHlch(33.04, 42.61, 132.20°)
OKLaboklab(41.32% -0.0791 0.0721)
OKLCHoklch(41.32% 0.107 137.7)
XYZxyz(4.6405, 7.5546, 2.0241)
Luminance0.0756 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5817 #441758
analogous
#4C5817 #2B5817 #175823
triadic
#2B5817 #172B58 #58172B
tetradic
#2B5817 #174C58 #441758 #582317
square
#2B5817 #174C58 #441758 #582317
split-complementary
#2B5817 #231758 #58174C
monochromatic
#0C1806 #13270A #2B5817 #438924 #5AB930

Accessibility & contrast

On white

8.36
#2B5817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2B5817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5817
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5817#FFFFFF#000000##FFFFFF
##2B58171.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500E
Deuteranopia (green-blind)
#554C1D
Tritanopia (blue-blind)
#28554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b5817;
/* rgb */ color: rgb(43, 88, 23);
/* oklch */ color: oklch(41.3% 0.107 137.7);
Tailwind
colors: {
  custom: {
    50: '#698758',
    500: '#2b5817',
    950: '#000000',
  },
}
SCSS
$custom: #2b5817;
$custom-light: #698758;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5817",
  "rgb": {
    "r": 43,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 101.538,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41316,
    "c": 0.10702,
    "h": 137.7
  },
  "luminance": 0.07555
}

Semantic roles & 50–950 ramp

primary
#2B5817
secondary
#753C8F
accent
#46E2B2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5817

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

Preview Lab → · Contrast checker → · Palette generator →

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