#2F401A#2F401A

#2F401A is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.7% C 0.064 H 129.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2F401A
RGBrgb(47, 64, 26)
HSLhsl(87, 42%, 18%)
HSVhsv(87, 59%, 25%)
CMYKcmyk(26.6%, 0%, 59.4%, 74.9%)
CIE-LABlab(24.78, -14.47, 20.85)
CIE-LCHlch(24.78, 25.37, 124.76°)
OKLaboklab(34.66% -0.0404 0.0495)
OKLCHoklch(34.66% 0.064 129.2)
XYZxyz(3.1921, 4.3456, 1.6477)
Luminance0.0435 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F401A #2B1A40
analogous
#403E1A #2F401A #1C401A
triadic
#2F401A #1A2F40 #401A2F
tetradic
#2F401A #1A403E #2B1A40 #401A1C
square
#2F401A #1A403E #2B1A40 #401A1C
split-complementary
#2F401A #1A1C40 #3E1A40
monochromatic
#101609 #101609 #2F401A #4F6C2C #6F973D

Accessibility & contrast

On white

11.23
#2F401A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F401A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F401A
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F401A#FFFFFF#000000##FFFFFF
##2F401A1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433C16
Deuteranopia (green-blind)
#413A1C
Tritanopia (blue-blind)
#303D37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f401a;
/* rgb */ color: rgb(47, 64, 26);
/* oklch */ color: oklch(34.7% 0.064 129.2);
Tailwind
colors: {
  custom: {
    50: '#697557',
    500: '#2f401a',
    950: '#000000',
  },
}
SCSS
$custom: #2f401a;
$custom-light: #697557;
$custom-dark: #000000;
JSON
{
  "hex": "#2f401a",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 26
  },
  "hsl": {
    "h": 86.842,
    "s": 42.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.34659,
    "c": 0.06387,
    "h": 129.2
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#2F401A
secondary
#584076
accent
#56D28D
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2F401A

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

Preview Lab → · Contrast checker → · Palette generator →

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