#2C6217#2C6217

#2C6217 is a dark, vivid green. Relative luminance 0.093; OKLCH L 44.3% C 0.120 H 138.5°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#2C6217
RGBrgb(44, 98, 23)
HSLhsl(103, 62%, 24%)
HSVhsv(103, 77%, 38%)
CMYKcmyk(55.1%, 0%, 76.5%, 61.6%)
CIE-LABlab(36.62, -32.69, 35.28)
CIE-LCHlch(36.62, 48.10, 132.82°)
OKLaboklab(44.27% -0.0902 0.0798)
OKLCHoklch(44.27% 0.12 138.5)
XYZxyz(5.5608, 9.3323, 2.3187)
Luminance0.0933 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C6217 #4D1762
analogous
#516217 #2C6217 #176227
triadic
#2C6217 #172C62 #62172C
tetradic
#2C6217 #175162 #4D1762 #622717
square
#2C6217 #175162 #4D1762 #622717
split-complementary
#2C6217 #271762 #621751
monochromatic
#0B1906 #16300B #2C6217 #429423 #59C52E

Accessibility & contrast

On white

7.33
#2C6217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C6217
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C6217#FFFFFF#000000##FFFFFF
##2C62171.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c6217;
/* rgb */ color: rgb(44, 98, 23);
/* oklch */ color: oklch(44.3% 0.120 138.5);
Tailwind
colors: {
  custom: {
    50: '#6b8f59',
    500: '#2c6217',
    950: '#000000',
  },
}
SCSS
$custom: #2c6217;
$custom-light: #6b8f59;
$custom-dark: #000000;
JSON
{
  "hex": "#2c6217",
  "rgb": {
    "r": 44,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 103.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44271,
    "c": 0.12045,
    "h": 138.5
  },
  "luminance": 0.09333
}

Semantic roles & 50–950 ramp

primary
#2C6217
secondary
#7F3C99
accent
#43E5B8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2C6217

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

Preview Lab → · Contrast checker → · Palette generator →

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