#2C4F0F#2C4F0F

#2C4F0F is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.7% C 0.099 H 134.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2C4F0F
RGBrgb(44, 79, 15)
HSLhsl(93, 68%, 18%)
HSVhsv(93, 81%, 31%)
CMYKcmyk(44.3%, 0%, 81%, 69%)
CIE-LABlab(29.82, -24.72, 31.76)
CIE-LCHlch(29.82, 40.25, 127.90°)
OKLaboklab(38.67% -0.0693 0.0712)
OKLCHoklch(38.67% 0.099 134.2)
XYZxyz(3.9208, 6.1617, 1.4346)
Luminance0.0616 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F0F #320F4F
analogous
#4C4F0F #2C4F0F #0F4F12
triadic
#2C4F0F #0F2C4F #4F0F2C
tetradic
#2C4F0F #0F4C4F #320F4F #4F120F
square
#2C4F0F #0F4C4F #320F4F #4F120F
split-complementary
#2C4F0F #120F4F #4F0F4C
monochromatic
#0E1A05 #0F1C05 #2C4F0F #498219 #65B623

Accessibility & contrast

On white

9.41
#2C4F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2C4F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4F0F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F0F#FFFFFF#000000##FFFFFF
##2C4F0F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524804
Deuteranopia (green-blind)
#4E4515
Tritanopia (blue-blind)
#2C4C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c4f0f;
/* rgb */ color: rgb(44, 79, 15);
/* oklch */ color: oklch(38.7% 0.099 134.2);
Tailwind
colors: {
  custom: {
    50: '#698052',
    500: '#2c4f0f',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f0f;
$custom-light: #698052;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f0f",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 92.813,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38669,
    "c": 0.09933,
    "h": 134.2
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

primary
#2C4F0F
secondary
#613189
accent
#3DEB9C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2C4F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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