#2F512E#2F512E

#2F512E is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.9% C 0.070 H 143.5°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2F512E
RGBrgb(47, 81, 46)
HSLhsl(118, 28%, 25%)
HSVhsv(118, 43%, 32%)
CMYKcmyk(42%, 0%, 43.2%, 68.2%)
CIE-LABlab(31.08, -20.62, 16.79)
CIE-LCHlch(31.08, 26.60, 140.84°)
OKLaboklab(39.87% -0.0562 0.0416)
OKLCHoklch(39.87% 0.07 143.5)
XYZxyz(4.6077, 6.6862, 3.6320)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F512E #502E51
analogous
#40512E #2F512E #2E513F
triadic
#2F512E #2E2F51 #512E2F
tetradic
#2F512E #2E4051 #502E51 #513F2E
square
#2F512E #2E4051 #502E51 #513F2E
split-complementary
#2F512E #3F2E51 #512E40
monochromatic
#0B140B #182A18 #2F512E #467844 #5C9F5A

Accessibility & contrast

On white

8.99
#2F512E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F512E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F512E
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F512E#FFFFFF#000000##FFFFFF
##2F512E1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524B2C
Deuteranopia (green-blind)
#4D4830
Tritanopia (blue-blind)
#2B4F48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f512e;
/* rgb */ color: rgb(47, 81, 46);
/* oklch */ color: oklch(39.9% 0.070 143.5);
Tailwind
colors: {
  custom: {
    50: '#698267',
    500: '#2f512e',
    950: '#000000',
  },
}
SCSS
$custom: #2f512e;
$custom-light: #698267;
$custom-dark: #000000;
JSON
{
  "hex": "#2f512e",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 46
  },
  "hsl": {
    "h": 118.286,
    "s": 27.559,
    "l": 24.902
  },
  "oklch": {
    "l": 0.39873,
    "c": 0.0699,
    "h": 143.5
  },
  "luminance": 0.06686
}

Semantic roles & 50–950 ramp

primary
#2F512E
secondary
#815883
accent
#64C4C1
background
#F6F7F6
surface
#EBEEEB
border
#C6C9C6
text
#060A06
muted
#7A7C7A

Preview Lab

Preview with #2F512E

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

Preview Lab → · Contrast checker → · Palette generator →

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