#2E5F17#2E5F17

#2E5F17 is a dark, moderate green. Relative luminance 0.088; OKLCH L 43.5% C 0.115 H 137.5°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2E5F17
RGBrgb(46, 95, 23)
HSLhsl(101, 61%, 23%)
HSVhsv(101, 76%, 37%)
CMYKcmyk(51.6%, 0%, 75.8%, 62.7%)
CIE-LABlab(35.65, -30.72, 34.32)
CIE-LCHlch(35.65, 46.06, 131.83°)
OKLaboklab(43.5% -0.085 0.0778)
OKLCHoklch(43.5% 0.115 137.5)
XYZxyz(5.3734, 8.8268, 2.2310)
Luminance0.0883 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5F17 #48175F
analogous
#525F17 #2E5F17 #175F24
triadic
#2E5F17 #172E5F #5F172E
tetradic
#2E5F17 #17525F #48175F #5F2417
square
#2E5F17 #17525F #48175F #5F2417
split-complementary
#2E5F17 #24175F #5F1752
monochromatic
#0C1906 #162E0B #2E5F17 #469023 #5EC22F

Accessibility & contrast

On white

7.59
#2E5F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2E5F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5F17
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5F17#FFFFFF#000000##FFFFFF
##2E5F171.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560B
Deuteranopia (green-blind)
#5C521E
Tritanopia (blue-blind)
#2B5B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e5f17;
/* rgb */ color: rgb(46, 95, 23);
/* oklch */ color: oklch(43.5% 0.115 137.5);
Tailwind
colors: {
  custom: {
    50: '#6c8d59',
    500: '#2e5f17',
    950: '#000000',
  },
}
SCSS
$custom: #2e5f17;
$custom-light: #6c8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5f17",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 23
  },
  "hsl": {
    "h": 100.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43499,
    "c": 0.11524,
    "h": 137.5
  },
  "luminance": 0.08827
}

Semantic roles & 50–950 ramp

primary
#2E5F17
secondary
#793C96
accent
#44E4B1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2E5F17

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

Preview Lab → · Contrast checker → · Palette generator →

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