#2F400D#2F400D

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

Color values

HEX#2F400D
RGBrgb(47, 64, 13)
HSLhsl(80, 66%, 15%)
HSVhsv(80, 80%, 25%)
CMYKcmyk(26.6%, 0%, 79.7%, 74.9%)
CIE-LABlab(24.64, -15.79, 27.52)
CIE-LCHlch(24.64, 31.73, 119.85°)
OKLaboklab(34.5% -0.0454 0.0619)
OKLCHoklch(34.5% 0.077 126.3)
XYZxyz(3.0783, 4.3001, 1.0485)
Luminance0.0430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F400D #1E0D40
analogous
#40370D #2F400D #15400D
triadic
#2F400D #0D2F40 #400D2F
tetradic
#2F400D #0D4037 #1E0D40 #400D15
square
#2F400D #0D4037 #1E0D40 #400D15
split-complementary
#2F400D #0D1540 #370D40
monochromatic
#131905 #131905 #2F400D #547317 #7AA622

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F400D#FFFFFF#000000##FFFFFF
##2F400D1.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)
#443B05
Deuteranopia (green-blind)
#413A11
Tritanopia (blue-blind)
#313D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f400d;
/* rgb */ color: rgb(47, 64, 13);
/* oklch */ color: oklch(34.5% 0.077 126.3);
Tailwind
colors: {
  custom: {
    50: '#69754f',
    500: '#2f400d',
    950: '#000000',
  },
}
SCSS
$custom: #2f400d;
$custom-light: #69754f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f400d",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 13
  },
  "hsl": {
    "h": 80,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.34497,
    "c": 0.07675,
    "h": 126.3
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#2F400D
secondary
#472D7C
accent
#3FE977
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F400D

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

Preview Lab → · Contrast checker → · Palette generator →

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