#2D6217#2D6217

#2D6217 is a dark, moderate green. Relative luminance 0.094; OKLCH L 44.3% C 0.120 H 138.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2D6217
RGBrgb(45, 98, 23)
HSLhsl(102, 62%, 24%)
HSVhsv(102, 77%, 38%)
CMYKcmyk(54.1%, 0%, 76.5%, 61.6%)
CIE-LABlab(36.66, -32.37, 35.34)
CIE-LCHlch(36.66, 47.92, 132.49°)
OKLaboklab(44.32% -0.0894 0.0799)
OKLCHoklch(44.32% 0.12 138.2)
XYZxyz(5.6043, 9.3547, 2.3208)
Luminance0.0935 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6217 #4C1762
analogous
#526217 #2D6217 #176226
triadic
#2D6217 #172D62 #62172D
tetradic
#2D6217 #175262 #4C1762 #622617
square
#2D6217 #175262 #4C1762 #622617
split-complementary
#2D6217 #261762 #621752
monochromatic
#0B1906 #16300B #2D6217 #449423 #5BC52E

Accessibility & contrast

On white

7.31
#2D6217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2D6217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D6217
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6217#FFFFFF#000000##FFFFFF
##2D62171.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65590A
Deuteranopia (green-blind)
#5E551E
Tritanopia (blue-blind)
#295E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2d6217;
/* rgb */ color: rgb(45, 98, 23);
/* oklch */ color: oklch(44.3% 0.120 138.2);
Tailwind
colors: {
  custom: {
    50: '#6c8f59',
    500: '#2d6217',
    950: '#000000',
  },
}
SCSS
$custom: #2d6217;
$custom-light: #6c8f59;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6217",
  "rgb": {
    "r": 45,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 102.4,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44318,
    "c": 0.11991,
    "h": 138.2
  },
  "luminance": 0.09355
}

Semantic roles & 50–950 ramp

primary
#2D6217
secondary
#7D3C99
accent
#43E5B5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2D6217

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

Preview Lab → · Contrast checker → · Palette generator →

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