#2A3D08#2A3D08

#2A3D08 is a dark, moderate yellow-green. Relative luminance 0.038; OKLCH L 33.2% C 0.079 H 127.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2A3D08
RGBrgb(42, 61, 8)
HSLhsl(82, 77%, 14%)
HSVhsv(82, 87%, 24%)
CMYKcmyk(31.1%, 0%, 86.9%, 76.1%)
CIE-LABlab(23.16, -16.85, 28.03)
CIE-LCHlch(23.16, 32.71, 121.00°)
OKLaboklab(33.19% -0.0484 0.0623)
OKLCHoklch(33.19% 0.079 127.8)
XYZxyz(2.6674, 3.8472, 0.8317)
Luminance0.0385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D08 #1B083D
analogous
#3D3508 #2A3D08 #0F3D08
triadic
#2A3D08 #082A3D #3D082A
tetradic
#2A3D08 #083D35 #1B083D #3D080F
square
#2A3D08 #083D35 #1B083D #3D080F
split-complementary
#2A3D08 #080F3D #35083D
monochromatic
#131B04 #131B04 #2A3D08 #4F730F #75A916

Accessibility & contrast

On white

11.87
#2A3D08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A3D08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D08
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D08#FFFFFF#000000##FFFFFF
##2A3D081.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413801
Deuteranopia (green-blind)
#3E370D
Tritanopia (blue-blind)
#2C3A33
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a3d08;
/* rgb */ color: rgb(42, 61, 8);
/* oklch */ color: oklch(33.2% 0.079 127.8);
Tailwind
colors: {
  custom: {
    50: '#66724c',
    500: '#2a3d08',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d08;
$custom-light: #66724c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d08",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 8
  },
  "hsl": {
    "h": 81.509,
    "s": 76.812,
    "l": 13.529
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.07892,
    "h": 127.8
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#2A3D08
secondary
#44257C
accent
#34F379
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A3D08

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

Preview Lab → · Contrast checker → · Palette generator →

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