#2A3A08#2A3A08

#2A3A08 is a dark, moderate yellow-green. Relative luminance 0.035; OKLCH L 32.3% C 0.074 H 126.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2A3A08
RGBrgb(42, 58, 8)
HSLhsl(79, 76%, 13%)
HSVhsv(79, 86%, 23%)
CMYKcmyk(27.6%, 0%, 86.2%, 77.3%)
CIE-LABlab(22.07, -15.18, 26.90)
CIE-LCHlch(22.07, 30.89, 119.43°)
OKLaboklab(32.31% -0.0439 0.0602)
OKLCHoklch(32.31% 0.074 126.1)
XYZxyz(2.5117, 3.5358, 0.7798)
Luminance0.0354 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A08 #18083A
analogous
#3A3108 #2A3A08 #113A08
triadic
#2A3A08 #082A3A #3A082A
tetradic
#2A3A08 #083A31 #18083A #3A0811
square
#2A3A08 #083A31 #18083A #3A0811
split-complementary
#2A3A08 #08113A #31083A
monochromatic
#131B04 #131B04 #2A3A08 #51700F #78A617

Accessibility & contrast

On white

12.30
#2A3A08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A3A08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A08
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A08#FFFFFF#000000##FFFFFF
##2A3A081.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3501
Deuteranopia (green-blind)
#3B350D
Tritanopia (blue-blind)
#2C3730
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a3a08;
/* rgb */ color: rgb(42, 58, 8);
/* oklch */ color: oklch(32.3% 0.074 126.1);
Tailwind
colors: {
  custom: {
    50: '#66704c',
    500: '#2a3a08',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a08;
$custom-light: #66704c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a08",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 8
  },
  "hsl": {
    "h": 79.2,
    "s": 75.758,
    "l": 12.941
  },
  "oklch": {
    "l": 0.32307,
    "c": 0.07445,
    "h": 126.1
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#2A3A08
secondary
#402579
accent
#35F272
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #2A3A08

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

Preview Lab → · Contrast checker → · Palette generator →

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