#2F4112#2F4112

#2F4112 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.8% C 0.074 H 127.7°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2F4112
RGBrgb(47, 65, 18)
HSLhsl(83, 57%, 16%)
HSVhsv(83, 72%, 25%)
CMYKcmyk(27.7%, 0%, 72.3%, 74.5%)
CIE-LABlab(25.04, -15.92, 25.52)
CIE-LCHlch(25.04, 30.08, 121.96°)
OKLaboklab(34.84% -0.0452 0.0585)
OKLCHoklch(34.84% 0.074 127.7)
XYZxyz(3.1718, 4.4285, 1.2598)
Luminance0.0443 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4112 #241241
analogous
#413C12 #2F4112 #184112
triadic
#2F4112 #122F41 #41122F
tetradic
#2F4112 #12413C #241241 #411218
square
#2F4112 #12413C #241241 #411218
split-complementary
#2F4112 #121841 #3C1241
monochromatic
#111807 #111807 #2F4112 #52711F #74A12D

Accessibility & contrast

On white

11.14
#2F4112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4112
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4112#FFFFFF#000000##FFFFFF
##2F41121.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C0C
Deuteranopia (green-blind)
#423B16
Tritanopia (blue-blind)
#313E37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f4112;
/* rgb */ color: rgb(47, 65, 18);
/* oklch */ color: oklch(34.8% 0.074 127.7);
Tailwind
colors: {
  custom: {
    50: '#697552',
    500: '#2f4112',
    950: '#000000',
  },
}
SCSS
$custom: #2f4112;
$custom-light: #697552;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4112",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 18
  },
  "hsl": {
    "h": 82.979,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.34837,
    "c": 0.07396,
    "h": 127.7
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#2F4112
secondary
#4F357A
accent
#48E082
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F4112

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

Preview Lab → · Contrast checker → · Palette generator →

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