#2F420B#2F420B

#2F420B is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.1% C 0.081 H 127.1°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2F420B
RGBrgb(47, 66, 11)
HSLhsl(81, 71%, 15%)
HSVhsv(81, 83%, 26%)
CMYKcmyk(28.8%, 0%, 83.3%, 74.1%)
CIE-LABlab(25.34, -17.04, 29.08)
CIE-LCHlch(25.34, 33.70, 120.38°)
OKLaboklab(35.06% -0.049 0.0648)
OKLCHoklch(35.06% 0.081 127.1)
XYZxyz(3.1809, 4.5249, 1.0223)
Luminance0.0452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F420B #1E0B42
analogous
#42390B #2F420B #14420B
triadic
#2F420B #0B2F42 #420B2F
tetradic
#2F420B #0B4239 #1E0B42 #420B14
square
#2F420B #0B4239 #1E0B42 #420B14
split-complementary
#2F420B #0B1442 #390B42
monochromatic
#131A04 #131A04 #2F420B #547614 #7AAB1C

Accessibility & contrast

On white

11.02
#2F420B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F420B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F420B
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F420B#FFFFFF#000000##FFFFFF
##2F420B1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D03
Deuteranopia (green-blind)
#433C10
Tritanopia (blue-blind)
#313F37
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f420b;
/* rgb */ color: rgb(47, 66, 11);
/* oklch */ color: oklch(35.1% 0.081 127.1);
Tailwind
colors: {
  custom: {
    50: '#6a764e',
    500: '#2f420b',
    950: '#000000',
  },
}
SCSS
$custom: #2f420b;
$custom-light: #6a764e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f420b",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 11
  },
  "hsl": {
    "h": 80.727,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.35057,
    "c": 0.08122,
    "h": 127.1
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#2F420B
secondary
#472A7F
accent
#3AEE78
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #2F420B

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

Preview Lab → · Contrast checker → · Palette generator →

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