#2F4515#2F4515

#2F4515 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.0% C 0.077 H 130.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2F4515
RGBrgb(47, 69, 21)
HSLhsl(88, 53%, 18%)
HSVhsv(88, 70%, 27%)
CMYKcmyk(31.9%, 0%, 69.6%, 72.9%)
CIE-LABlab(26.49, -17.83, 25.56)
CIE-LCHlch(26.49, 31.16, 124.89°)
OKLaboklab(36.02% -0.0501 0.0591)
OKLCHoklch(36.02% 0.077 130.3)
XYZxyz(3.4357, 4.9146, 1.4769)
Luminance0.0491 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4515 #2B1545
analogous
#454315 #2F4515 #174515
triadic
#2F4515 #152F45 #45152F
tetradic
#2F4515 #154543 #2B1545 #451517
square
#2F4515 #154543 #2B1545 #451517
split-complementary
#2F4515 #151745 #431545
monochromatic
#101707 #101707 #2F4515 #4F7423 #6FA332

Accessibility & contrast

On white

10.59
#2F4515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F4515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4515
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4515#FFFFFF#000000##FFFFFF
##2F45151.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48400F
Deuteranopia (green-blind)
#453E19
Tritanopia (blue-blind)
#30423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f4515;
/* rgb */ color: rgb(47, 69, 21);
/* oklch */ color: oklch(36.0% 0.077 130.3);
Tailwind
colors: {
  custom: {
    50: '#697855',
    500: '#2f4515',
    950: '#000000',
  },
}
SCSS
$custom: #2f4515;
$custom-light: #697855;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4515",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 21
  },
  "hsl": {
    "h": 87.5,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36022,
    "c": 0.07747,
    "h": 130.3
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

primary
#2F4515
secondary
#58397D
accent
#4BDD8E
background
#F6F7F5
surface
#EBEDE8
border
#C6C8C4
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4515

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

Preview Lab → · Contrast checker → · Palette generator →

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