#2F4115#2F4115

#2F4115 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.9% C 0.071 H 128.4°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2F4115
RGBrgb(47, 65, 21)
HSLhsl(85, 51%, 17%)
HSVhsv(85, 68%, 25%)
CMYKcmyk(27.7%, 0%, 67.7%, 74.5%)
CIE-LABlab(25.07, -15.62, 23.99)
CIE-LCHlch(25.07, 28.62, 123.08°)
OKLaboklab(34.87% -0.0441 0.0557)
OKLCHoklch(34.87% 0.071 128.4)
XYZxyz(3.1979, 4.4390, 1.3977)
Luminance0.0444 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4115 #271541
analogous
#413D15 #2F4115 #194115
triadic
#2F4115 #152F41 #41152F
tetradic
#2F4115 #15413D #271541 #411519
square
#2F4115 #15413D #271541 #411519
split-complementary
#2F4115 #151941 #3D1541
monochromatic
#111707 #111707 #2F4115 #506F24 #729E33

Accessibility & contrast

On white

11.12
#2F4115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F4115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4115
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4115#FFFFFF#000000##FFFFFF
##2F41151.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C10
Deuteranopia (green-blind)
#423B18
Tritanopia (blue-blind)
#313E38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f4115;
/* rgb */ color: rgb(47, 65, 21);
/* oklch */ color: oklch(34.9% 0.071 128.4);
Tailwind
colors: {
  custom: {
    50: '#697554',
    500: '#2f4115',
    950: '#000000',
  },
}
SCSS
$custom: #2f4115;
$custom-light: #697554;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4115",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 21
  },
  "hsl": {
    "h": 84.545,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.34873,
    "c": 0.07103,
    "h": 128.4
  },
  "luminance": 0.04439
}

Semantic roles & 50–950 ramp

primary
#2F4115
secondary
#533979
accent
#4DDB87
background
#F6F7F4
surface
#EBEDE8
border
#C6C8C4
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2F4115

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

Preview Lab → · Contrast checker → · Palette generator →

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