#2C400F#2C400F

#2C400F is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.3% C 0.077 H 129.0°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2C400F
RGBrgb(44, 64, 15)
HSLhsl(84, 62%, 15%)
HSVhsv(84, 77%, 25%)
CMYKcmyk(31.2%, 0%, 76.6%, 74.9%)
CIE-LABlab(24.44, -17.03, 26.31)
CIE-LCHlch(24.44, 31.34, 122.91°)
OKLaboklab(34.28% -0.0483 0.0598)
OKLCHoklch(34.28% 0.077 129)
XYZxyz(2.9583, 4.2367, 1.1137)
Luminance0.0424 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C400F #230F40
analogous
#403B0F #2C400F #13400F
triadic
#2C400F #0F2C40 #400F2C
tetradic
#2C400F #0F403B #230F40 #400F13
square
#2C400F #0F403B #230F40 #400F13
split-complementary
#2C400F #0F1340 #3B0F40
monochromatic
#111906 #111906 #2C400F #4E721B #70A326

Accessibility & contrast

On white

11.37
#2C400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2C400F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C400F
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C400F#FFFFFF#000000##FFFFFF
##2C400F1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B08
Deuteranopia (green-blind)
#413A13
Tritanopia (blue-blind)
#2E3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c400f;
/* rgb */ color: rgb(44, 64, 15);
/* oklch */ color: oklch(34.3% 0.077 129.0);
Tailwind
colors: {
  custom: {
    50: '#677550',
    500: '#2c400f',
    950: '#000000',
  },
}
SCSS
$custom: #2c400f;
$custom-light: #677550;
$custom-dark: #000000;
JSON
{
  "hex": "#2c400f",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 84.49,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.07686,
    "h": 129
  },
  "luminance": 0.04237
}

Semantic roles & 50–950 ramp

primary
#2C400F
secondary
#4F307A
accent
#43E585
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2C400F

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

Preview Lab → · Contrast checker → · Palette generator →

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