#2C4012#2C4012

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

Color values

HEX#2C4012
RGBrgb(44, 64, 18)
HSLhsl(86, 56%, 16%)
HSVhsv(86, 72%, 25%)
CMYKcmyk(31.2%, 0%, 71.9%, 74.9%)
CIE-LABlab(24.47, -16.75, 24.84)
CIE-LCHlch(24.47, 29.96, 123.99°)
OKLaboklab(34.32% -0.0473 0.0572)
OKLCHoklch(34.32% 0.074 129.6)
XYZxyz(2.9813, 4.2459, 1.2346)
Luminance0.0425 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4012 #261240
analogous
#403D12 #2C4012 #154012
triadic
#2C4012 #122C40 #40122C
tetradic
#2C4012 #12403D #261240 #401215
square
#2C4012 #12403D #261240 #401215
split-complementary
#2C4012 #121540 #3D1240
monochromatic
#101807 #101807 #2C4012 #4D701F #6EA02D

Accessibility & contrast

On white

11.36
#2C4012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C4012
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4012#FFFFFF#000000##FFFFFF
##2C40121.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B0C
Deuteranopia (green-blind)
#403A16
Tritanopia (blue-blind)
#2D3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c4012;
/* rgb */ color: rgb(44, 64, 18);
/* oklch */ color: oklch(34.3% 0.074 129.6);
Tailwind
colors: {
  custom: {
    50: '#677552',
    500: '#2c4012',
    950: '#000000',
  },
}
SCSS
$custom: #2c4012;
$custom-light: #677552;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4012",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 86.087,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.34316,
    "c": 0.07416,
    "h": 129.6
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#2C4012
secondary
#523579
accent
#48DF8A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2C4012

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

Preview Lab → · Contrast checker → · Palette generator →

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