#2A5317#2A5317

#2A5317 is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.8% C 0.100 H 137.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2A5317
RGBrgb(42, 83, 23)
HSLhsl(101, 57%, 21%)
HSVhsv(101, 72%, 33%)
CMYKcmyk(49.4%, 0%, 72.3%, 67.5%)
CIE-LABlab(31.21, -26.68, 29.61)
CIE-LCHlch(31.21, 39.85, 132.02°)
OKLaboklab(39.8% -0.0738 0.068)
OKLCHoklch(39.8% 0.1 137.4)
XYZxyz(4.2026, 6.7403, 1.8900)
Luminance0.0674 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5317 #401753
analogous
#485317 #2A5317 #175322
triadic
#2A5317 #172A53 #53172A
tetradic
#2A5317 #174853 #401753 #532217
square
#2A5317 #174853 #401753 #532217
split-complementary
#2A5317 #221753 #531748
monochromatic
#0C1807 #12230A #2A5317 #428324 #5AB332

Accessibility & contrast

On white

8.94
#2A5317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2A5317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5317
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5317#FFFFFF#000000##FFFFFF
##2A53171.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0F
Deuteranopia (green-blind)
#50481C
Tritanopia (blue-blind)
#285047
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5317;
/* rgb */ color: rgb(42, 83, 23);
/* oklch */ color: oklch(39.8% 0.100 137.4);
Tailwind
colors: {
  custom: {
    50: '#688457',
    500: '#2a5317',
    950: '#000000',
  },
}
SCSS
$custom: #2a5317;
$custom-light: #688457;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5317",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 23
  },
  "hsl": {
    "h": 101,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39802,
    "c": 0.10031,
    "h": 137.4
  },
  "luminance": 0.06741
}

Semantic roles & 50–950 ramp

primary
#2A5317
secondary
#713C8A
accent
#48E0B0
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5317

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

Preview Lab → · Contrast checker → · Palette generator →

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