#2F400B#2F400B

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

Color values

HEX#2F400B
RGBrgb(47, 64, 11)
HSLhsl(79, 71%, 15%)
HSVhsv(79, 83%, 25%)
CMYKcmyk(26.6%, 0%, 82.8%, 74.9%)
CIE-LABlab(24.62, -15.94, 28.38)
CIE-LCHlch(24.62, 32.55, 119.32°)
OKLaboklab(34.48% -0.046 0.0633)
OKLCHoklch(34.48% 0.078 126)
XYZxyz(3.0661, 4.2952, 0.9841)
Luminance0.0430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F400B #1C0B40
analogous
#40370B #2F400B #15400B
triadic
#2F400B #0B2F40 #400B2F
tetradic
#2F400B #0B4037 #1C0B40 #400B15
square
#2F400B #0B4037 #1C0B40 #400B15
split-complementary
#2F400B #0B1540 #370B40
monochromatic
#131A04 #131A04 #2F400B #557414 #7CA81D

Accessibility & contrast

On white

11.30
#2F400B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F400B
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F400B#FFFFFF#000000##FFFFFF
##2F400B1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f400b;
/* rgb */ color: rgb(47, 64, 11);
/* oklch */ color: oklch(34.5% 0.078 126.0);
Tailwind
colors: {
  custom: {
    50: '#6a754e',
    500: '#2f400b',
    950: '#000000',
  },
}
SCSS
$custom: #2f400b;
$custom-light: #6a754e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f400b",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 11
  },
  "hsl": {
    "h": 79.245,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.3448,
    "c": 0.07827,
    "h": 126
  },
  "luminance": 0.04295
}

Semantic roles & 50–950 ramp

primary
#2F400B
secondary
#452A7D
accent
#3AED74
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F400B

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

Preview Lab → · Contrast checker → · Palette generator →

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