#2F400C#2F400C

#2F400C is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.5% C 0.078 H 126.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2F400C
RGBrgb(47, 64, 12)
HSLhsl(80, 68%, 15%)
HSVhsv(80, 81%, 25%)
CMYKcmyk(26.6%, 0%, 81.2%, 74.9%)
CIE-LABlab(24.63, -15.87, 27.96)
CIE-LCHlch(24.63, 32.15, 119.58°)
OKLaboklab(34.49% -0.0457 0.0626)
OKLCHoklch(34.49% 0.078 126.1)
XYZxyz(3.0721, 4.2976, 1.0154)
Luminance0.0430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F400C #1D0C40
analogous
#40370C #2F400C #15400C
triadic
#2F400C #0C2F40 #400C2F
tetradic
#2F400C #0C4037 #1D0C40 #400C15
square
#2F400C #0C4037 #1D0C40 #400C15
split-complementary
#2F400C #0C1540 #370C40
monochromatic
#131A05 #131A05 #2F400C #557416 #7BA71F

Accessibility & contrast

On white

11.29
#2F400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F400C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F400C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F400C#FFFFFF#000000##FFFFFF
##2F400C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B04
Deuteranopia (green-blind)
#423A11
Tritanopia (blue-blind)
#313D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f400c;
/* rgb */ color: rgb(47, 64, 12);
/* oklch */ color: oklch(34.5% 0.078 126.1);
Tailwind
colors: {
  custom: {
    50: '#6a754f',
    500: '#2f400c',
    950: '#000000',
  },
}
SCSS
$custom: #2f400c;
$custom-light: #6a754f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f400c",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 79.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34488,
    "c": 0.07752,
    "h": 126.1
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#2F400C
secondary
#462C7C
accent
#3DEB76
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F400C

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

Preview Lab → · Contrast checker → · Palette generator →

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