#2F5313#2F5313

#2F5313 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.101 H 134.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2F5313
RGBrgb(47, 83, 19)
HSLhsl(94, 63%, 20%)
HSVhsv(94, 77%, 33%)
CMYKcmyk(43.4%, 0%, 77.1%, 67.5%)
CIE-LABlab(31.43, -25.16, 31.75)
CIE-LCHlch(31.43, 40.51, 128.39°)
OKLaboklab(40.05% -0.0703 0.0718)
OKLCHoklch(40.05% 0.101 134.4)
XYZxyz(4.3830, 6.8376, 1.7048)
Luminance0.0684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5313 #371353
analogous
#4F5313 #2F5313 #135317
triadic
#2F5313 #132F53 #53132F
tetradic
#2F5313 #134F53 #371353 #531713
square
#2F5313 #134F53 #371353 #531713
split-complementary
#2F5313 #171353 #53134F
monochromatic
#0E1906 #132108 #2F5313 #4B851E #67B72A

Accessibility & contrast

On white

8.87
#2F5313 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F5313 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5313
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5313#FFFFFF#000000##FFFFFF
##2F53131.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C08
Deuteranopia (green-blind)
#524919
Tritanopia (blue-blind)
#2F5046
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f5313;
/* rgb */ color: rgb(47, 83, 19);
/* oklch */ color: oklch(40.0% 0.101 134.4);
Tailwind
colors: {
  custom: {
    50: '#6b8355',
    500: '#2f5313',
    950: '#000000',
  },
}
SCSS
$custom: #2f5313;
$custom-light: #6b8355;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5313",
  "rgb": {
    "r": 47,
    "g": 83,
    "b": 19
  },
  "hsl": {
    "h": 93.75,
    "s": 62.745,
    "l": 20
  },
  "oklch": {
    "l": 0.40047,
    "c": 0.1005,
    "h": 134.4
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#2F5313
secondary
#66368B
accent
#42E69E
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5313

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

Preview Lab → · Contrast checker → · Palette generator →

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