#2F6217#2F6217

#2F6217 is a dark, moderate green. Relative luminance 0.094; OKLCH L 44.4% C 0.119 H 137.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2F6217
RGBrgb(47, 98, 23)
HSLhsl(101, 62%, 24%)
HSVhsv(101, 77%, 38%)
CMYKcmyk(52%, 0%, 76.5%, 61.6%)
CIE-LABlab(36.75, -31.70, 35.45)
CIE-LCHlch(36.75, 47.56, 131.80°)
OKLaboklab(44.41% -0.0877 0.0802)
OKLCHoklch(44.41% 0.119 137.6)
XYZxyz(5.6944, 9.4012, 2.3250)
Luminance0.0940 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6217 #4A1762
analogous
#546217 #2F6217 #176224
triadic
#2F6217 #172F62 #62172F
tetradic
#2F6217 #175462 #4A1762 #622417
square
#2F6217 #175462 #4A1762 #622417
split-complementary
#2F6217 #241762 #621754
monochromatic
#0C1906 #17300B #2F6217 #479423 #5FC52E

Accessibility & contrast

On white

7.29
#2F6217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2F6217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6217
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6217#FFFFFF#000000##FFFFFF
##2F62171.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65590A
Deuteranopia (green-blind)
#5F551E
Tritanopia (blue-blind)
#2C5E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f6217;
/* rgb */ color: rgb(47, 98, 23);
/* oklch */ color: oklch(44.4% 0.119 137.6);
Tailwind
colors: {
  custom: {
    50: '#6d8f59',
    500: '#2f6217',
    950: '#000000',
  },
}
SCSS
$custom: #2f6217;
$custom-light: #6d8f59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6217",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 100.8,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44413,
    "c": 0.11884,
    "h": 137.6
  },
  "luminance": 0.09402
}

Semantic roles & 50–950 ramp

primary
#2F6217
secondary
#7B3C99
accent
#43E5B1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2F6217

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

Preview Lab → · Contrast checker → · Palette generator →

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