#2F400F#2F400F

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

Color values

HEX#2F400F
RGBrgb(47, 64, 15)
HSLhsl(81, 62%, 15%)
HSVhsv(81, 77%, 25%)
CMYKcmyk(26.6%, 0%, 76.6%, 74.9%)
CIE-LABlab(24.66, -15.63, 26.60)
CIE-LCHlch(24.66, 30.86, 120.44°)
OKLaboklab(34.52% -0.0447 0.0603)
OKLCHoklch(34.52% 0.075 126.6)
XYZxyz(3.0919, 4.3056, 1.1200)
Luminance0.0431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F400F #200F40
analogous
#40380F #2F400F #17400F
triadic
#2F400F #0F2F40 #400F2F
tetradic
#2F400F #0F4038 #200F40 #400F17
square
#2F400F #0F4038 #200F40 #400F17
split-complementary
#2F400F #0F1740 #380F40
monochromatic
#121906 #121906 #2F400F #53721B #78A326

Accessibility & contrast

On white

11.28
#2F400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F400F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F400F#FFFFFF#000000##FFFFFF
##2F400F1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B08
Deuteranopia (green-blind)
#413A13
Tritanopia (blue-blind)
#313D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f400f;
/* rgb */ color: rgb(47, 64, 15);
/* oklch */ color: oklch(34.5% 0.075 126.6);
Tailwind
colors: {
  custom: {
    50: '#697550',
    500: '#2f400f',
    950: '#000000',
  },
}
SCSS
$custom: #2f400f;
$custom-light: #697550;
$custom-dark: #000000;
JSON
{
  "hex": "#2f400f",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 80.816,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.34517,
    "c": 0.0751,
    "h": 126.6
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#2F400F
secondary
#4A307A
accent
#43E57B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F400F

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

Preview Lab → · Contrast checker → · Palette generator →

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