#2F401B#2F401B

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

Color values

HEX#2F401B
RGBrgb(47, 64, 27)
HSLhsl(88, 41%, 18%)
HSVhsv(88, 58%, 25%)
CMYKcmyk(26.6%, 0%, 57.8%, 74.9%)
CIE-LABlab(24.80, -14.34, 20.28)
CIE-LCHlch(24.80, 24.84, 125.27°)
OKLaboklab(34.67% -0.0399 0.0483)
OKLCHoklch(34.67% 0.063 129.5)
XYZxyz(3.2035, 4.3502, 1.7076)
Luminance0.0435 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F401B #2C1B40
analogous
#403E1B #2F401B #1C401B
triadic
#2F401B #1B2F40 #401B2F
tetradic
#2F401B #1B403E #2C1B40 #401B1C
square
#2F401B #1B403E #2C1B40 #401B1C
split-complementary
#2F401B #1B1C40 #3E1B40
monochromatic
#101609 #101609 #2F401B #4F6B2D #6E963F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F401B#FFFFFF#000000##FFFFFF
##2F401B1.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)
#433C18
Deuteranopia (green-blind)
#413A1D
Tritanopia (blue-blind)
#303D38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f401b;
/* rgb */ color: rgb(47, 64, 27);
/* oklch */ color: oklch(34.7% 0.063 129.5);
Tailwind
colors: {
  custom: {
    50: '#687558',
    500: '#2f401b',
    950: '#000000',
  },
}
SCSS
$custom: #2f401b;
$custom-light: #687558;
$custom-dark: #000000;
JSON
{
  "hex": "#2f401b",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 27
  },
  "hsl": {
    "h": 87.568,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.34675,
    "c": 0.0627,
    "h": 129.5
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#2F401B
secondary
#594175
accent
#57D18F
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2F401B

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

Preview Lab → · Contrast checker → · Palette generator →

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