#2A3F04#2A3F04

#2A3F04 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.7% C 0.085 H 128.3°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2A3F04
RGBrgb(42, 63, 4)
HSLhsl(81, 88%, 13%)
HSVhsv(81, 94%, 25%)
CMYKcmyk(33.3%, 0%, 93.7%, 75.3%)
CIE-LABlab(23.86, -18.21, 30.37)
CIE-LCHlch(23.86, 35.41, 120.96°)
OKLaboklab(33.75% -0.0525 0.0666)
OKLCHoklch(33.75% 0.085 128.3)
XYZxyz(2.7543, 4.0559, 0.7526)
Luminance0.0406 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F04 #19043F
analogous
#3F3604 #2A3F04 #0C3F04
triadic
#2A3F04 #042A3F #3F042A
tetradic
#2A3F04 #043F36 #19043F #3F040C
square
#2A3F04 #043F36 #19043F #3F040C
split-complementary
#2A3F04 #040C3F #36043F
monochromatic
#131D02 #131D02 #2A3F04 #507908 #77B20B

Accessibility & contrast

On white

11.59
#2A3F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A3F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F04
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F04#FFFFFF#000000##FFFFFF
##2A3F041.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#40380A
Tritanopia (blue-blind)
#2C3C34
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3f04;
/* rgb */ color: rgb(42, 63, 4);
/* oklch */ color: oklch(33.7% 0.085 128.3);
Tailwind
colors: {
  custom: {
    50: '#66744a',
    500: '#2a3f04',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f04;
$custom-light: #66744a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f04",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 4
  },
  "hsl": {
    "h": 81.356,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.33746,
    "c": 0.0848,
    "h": 128.3
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#2A3F04
secondary
#411E80
accent
#2AFE75
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A3F04

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

Preview Lab → · Contrast checker → · Palette generator →

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