#2A4308#2A4308

#2A4308 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.0% C 0.088 H 130.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2A4308
RGBrgb(42, 67, 8)
HSLhsl(85, 79%, 15%)
HSVhsv(85, 88%, 26%)
CMYKcmyk(37.3%, 0%, 88.1%, 73.7%)
CIE-LABlab(25.33, -20.04, 30.17)
CIE-LCHlch(25.33, 36.22, 123.60°)
OKLaboklab(34.96% -0.0571 0.0666)
OKLCHoklch(34.96% 0.088 130.6)
XYZxyz(3.0058, 4.5240, 0.9445)
Luminance0.0452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4308 #210843
analogous
#433F08 #2A4308 #0C4308
triadic
#2A4308 #082A43 #43082A
tetradic
#2A4308 #08433F #210843 #43080C
square
#2A4308 #08433F #210843 #43080C
split-complementary
#2A4308 #080C43 #3F0843
monochromatic
#111B03 #111B03 #2A4308 #4C7A0F #6FB015

Accessibility & contrast

On white

11.02
#2A4308 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A4308 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4308
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4308#FFFFFF#000000##FFFFFF
##2A43081.0011.021.9011.02
#FFFFFF11.021.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D00
Deuteranopia (green-blind)
#433B0E
Tritanopia (blue-blind)
#2B4038
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a4308;
/* rgb */ color: rgb(42, 67, 8);
/* oklch */ color: oklch(35.0% 0.088 130.6);
Tailwind
colors: {
  custom: {
    50: '#66774d',
    500: '#2a4308',
    950: '#000000',
  },
}
SCSS
$custom: #2a4308;
$custom-light: #66774d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4308",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 8
  },
  "hsl": {
    "h": 85.424,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.34958,
    "c": 0.08772,
    "h": 130.6
  },
  "luminance": 0.04524
}

Semantic roles & 50–950 ramp

primary
#2A4308
secondary
#4C2581
accent
#33F585
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4308

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

Preview Lab → · Contrast checker → · Palette generator →

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