#2F5F18#2F5F18

#2F5F18 is a dark, moderate green. Relative luminance 0.089; OKLCH L 43.6% C 0.114 H 137.4°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#2F5F18
RGBrgb(47, 95, 24)
HSLhsl(101, 60%, 23%)
HSVhsv(101, 75%, 37%)
CMYKcmyk(50.5%, 0%, 74.7%, 62.7%)
CIE-LABlab(35.70, -30.29, 33.96)
CIE-LCHlch(35.70, 45.51, 131.73°)
OKLaboklab(43.56% -0.0839 0.0772)
OKLCHoklch(43.56% 0.114 137.4)
XYZxyz(5.4292, 8.8543, 2.2870)
Luminance0.0886 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F18 #48185F
analogous
#525F18 #2F5F18 #185F24
triadic
#2F5F18 #182F5F #5F182F
tetradic
#2F5F18 #18525F #48185F #5F2418
square
#2F5F18 #18525F #48185F #5F2418
split-complementary
#2F5F18 #24185F #5F1852
monochromatic
#0C1806 #172E0C #2F5F18 #479024 #5FC131

Accessibility & contrast

On white

7.58
#2F5F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5F18
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F18#FFFFFF#000000##FFFFFF
##2F5F181.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560D
Deuteranopia (green-blind)
#5C521F
Tritanopia (blue-blind)
#2C5B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5f18;
/* rgb */ color: rgb(47, 95, 24);
/* oklch */ color: oklch(43.6% 0.114 137.4);
Tailwind
colors: {
  custom: {
    50: '#6d8d59',
    500: '#2f5f18',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f18;
$custom-light: #6d8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f18",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 100.563,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43559,
    "c": 0.11396,
    "h": 137.4
  },
  "luminance": 0.08855
}

Semantic roles & 50–950 ramp

primary
#2F5F18
secondary
#793D95
accent
#45E3B0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2F5F18

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

Preview Lab → · Contrast checker → · Palette generator →

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