#2C400C#2C400C

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

Color values

HEX#2C400C
RGBrgb(44, 64, 12)
HSLhsl(83, 68%, 15%)
HSVhsv(83, 81%, 25%)
CMYKcmyk(31.2%, 0%, 81.2%, 74.9%)
CIE-LABlab(24.41, -17.27, 27.67)
CIE-LCHlch(24.41, 32.61, 121.97°)
OKLaboklab(34.25% -0.0493 0.0621)
OKLCHoklch(34.25% 0.079 128.5)
XYZxyz(2.9385, 4.2287, 1.0092)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C400C #200C40
analogous
#403A0C #2C400C #12400C
triadic
#2C400C #0C2C40 #400C2C
tetradic
#2C400C #0C403A #200C40 #400C12
square
#2C400C #0C403A #200C40 #400C12
split-complementary
#2C400C #0C1240 #3A0C40
monochromatic
#121A05 #121A05 #2C400C #4F7416 #73A71F

Accessibility & contrast

On white

11.38
#2C400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C400C
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C400C#FFFFFF#000000##FFFFFF
##2C400C1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B04
Deuteranopia (green-blind)
#413A11
Tritanopia (blue-blind)
#2E3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c400c;
/* rgb */ color: rgb(44, 64, 12);
/* oklch */ color: oklch(34.3% 0.079 128.5);
Tailwind
colors: {
  custom: {
    50: '#67754f',
    500: '#2c400c',
    950: '#000000',
  },
}
SCSS
$custom: #2c400c;
$custom-light: #67754f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c400c",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 83.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34254,
    "c": 0.07929,
    "h": 128.5
  },
  "luminance": 0.04229
}

Semantic roles & 50–950 ramp

primary
#2C400C
secondary
#4B2C7C
accent
#3DEB80
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2C400C

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

Preview Lab → · Contrast checker → · Palette generator →

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