#2A4C0F#2A4C0F

#2A4C0F is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.7% C 0.096 H 134.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2A4C0F
RGBrgb(42, 76, 15)
HSLhsl(93, 67%, 18%)
HSVhsv(93, 80%, 30%)
CMYKcmyk(44.7%, 0%, 80.3%, 70.2%)
CIE-LABlab(28.63, -24.06, 30.54)
CIE-LCHlch(28.63, 38.88, 128.23°)
OKLaboklab(37.67% -0.0673 0.0687)
OKLCHoklch(37.67% 0.096 134.4)
XYZxyz(3.6254, 5.6954, 1.3601)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C0F #310F4C
analogous
#484C0F #2A4C0F #0F4C13
triadic
#2A4C0F #0F2A4C #4C0F2A
tetradic
#2A4C0F #0F484C #310F4C #4C130F
square
#2A4C0F #0F484C #310F4C #4C130F
split-complementary
#2A4C0F #130F4C #4C0F48
monochromatic
#0E1A05 #0E1A05 #2A4C0F #467F19 #62B223

Accessibility & contrast

On white

9.82
#2A4C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A4C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C0F
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C0F#FFFFFF#000000##FFFFFF
##2A4C0F1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4505
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#2A4940
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a4c0f;
/* rgb */ color: rgb(42, 76, 15);
/* oklch */ color: oklch(37.7% 0.096 134.4);
Tailwind
colors: {
  custom: {
    50: '#677e52',
    500: '#2a4c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c0f;
$custom-light: #677e52;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c0f",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 93.443,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37668,
    "c": 0.09619,
    "h": 134.4
  },
  "luminance": 0.05696
}

Semantic roles & 50–950 ramp

primary
#2A4C0F
secondary
#603186
accent
#3EEA9E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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