#2F512C#2F512C

#2F512C is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.8% C 0.072 H 142.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F512C
RGBrgb(47, 81, 44)
HSLhsl(115, 30%, 25%)
HSVhsv(115, 46%, 32%)
CMYKcmyk(42%, 0%, 45.7%, 68.2%)
CIE-LABlab(31.05, -20.98, 17.95)
CIE-LCHlch(31.05, 27.61, 139.44°)
OKLaboklab(39.83% -0.0572 0.0442)
OKLCHoklch(39.83% 0.072 142.3)
XYZxyz(4.5691, 6.6708, 3.4292)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F512C #4E2C51
analogous
#42512C #2F512C #2C513C
triadic
#2F512C #2C2F51 #512C2F
tetradic
#2F512C #2C4251 #4E2C51 #513C2C
square
#2F512C #2C4251 #4E2C51 #513C2C
split-complementary
#2F512C #3C2C51 #512C42
monochromatic
#0C140B #182916 #2F512C #467942 #5DA057

Accessibility & contrast

On white

9.00
#2F512C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F512C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F512C
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F512C#FFFFFF#000000##FFFFFF
##2F512C1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534B29
Deuteranopia (green-blind)
#4E482E
Tritanopia (blue-blind)
#2C4F48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f512c;
/* rgb */ color: rgb(47, 81, 44);
/* oklch */ color: oklch(39.8% 0.072 142.3);
Tailwind
colors: {
  custom: {
    50: '#698265',
    500: '#2f512c',
    950: '#000000',
  },
}
SCSS
$custom: #2f512c;
$custom-light: #698265;
$custom-dark: #000000;
JSON
{
  "hex": "#2f512c",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 44
  },
  "hsl": {
    "h": 115.135,
    "s": 29.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.39831,
    "c": 0.07228,
    "h": 142.3
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#2F512C
secondary
#7F5683
accent
#62C6BE
background
#F6F7F6
surface
#EBEEEB
border
#C6C9C6
text
#060A05
muted
#7A7C7A

Preview Lab

Preview with #2F512C

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

Preview Lab → · Contrast checker → · Palette generator →

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