#2F4D15#2F4D15

#2F4D15 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.090 H 133.2°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2F4D15
RGBrgb(47, 77, 21)
HSLhsl(92, 57%, 19%)
HSVhsv(92, 73%, 30%)
CMYKcmyk(39%, 0%, 72.7%, 69.8%)
CIE-LABlab(29.33, -22.02, 28.64)
CIE-LCHlch(29.33, 36.12, 127.55°)
OKLaboklab(38.33% -0.0616 0.0656)
OKLCHoklch(38.33% 0.09 133.2)
XYZxyz(3.9615, 5.9661, 1.6522)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D15 #33154D
analogous
#4B4D15 #2F4D15 #154D17
triadic
#2F4D15 #152F4D #4D152F
tetradic
#2F4D15 #154B4D #33154D #4D1715
square
#2F4D15 #154B4D #33154D #4D1715
split-complementary
#2F4D15 #17154D #4D154B
monochromatic
#0F1807 #121D08 #2F4D15 #4C7D22 #6AAD2F

Accessibility & contrast

On white

9.58
#2F4D15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F4D15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D15
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D15#FFFFFF#000000##FFFFFF
##2F4D151.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50470E
Deuteranopia (green-blind)
#4C441A
Tritanopia (blue-blind)
#2F4A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4d15;
/* rgb */ color: rgb(47, 77, 21);
/* oklch */ color: oklch(38.3% 0.090 133.2);
Tailwind
colors: {
  custom: {
    50: '#6a7f56',
    500: '#2f4d15',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d15;
$custom-light: #6a7f56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d15",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 21
  },
  "hsl": {
    "h": 92.143,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38331,
    "c": 0.08997,
    "h": 133.2
  },
  "luminance": 0.05966
}

Semantic roles & 50–950 ramp

primary
#2F4D15
secondary
#623985
accent
#47E099
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4D15

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

Preview Lab → · Contrast checker → · Palette generator →

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