#2A3C08#2A3C08

#2A3C08 is a dark, moderate yellow-green. Relative luminance 0.037; OKLCH L 32.9% C 0.077 H 127.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2A3C08
RGBrgb(42, 60, 8)
HSLhsl(81, 76%, 13%)
HSVhsv(81, 87%, 24%)
CMYKcmyk(30%, 0%, 86.7%, 76.5%)
CIE-LABlab(22.80, -16.30, 27.66)
CIE-LCHlch(22.80, 32.10, 120.50°)
OKLaboklab(32.9% -0.0469 0.0616)
OKLCHoklch(32.9% 0.077 127.3)
XYZxyz(2.6145, 3.7414, 0.8141)
Luminance0.0374 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C08 #1A083C
analogous
#3C3408 #2A3C08 #103C08
triadic
#2A3C08 #082A3C #3C082A
tetradic
#2A3C08 #083C34 #1A083C #3C0810
square
#2A3C08 #083C34 #1A083C #3C0810
split-complementary
#2A3C08 #08103C #34083C
monochromatic
#131B04 #131B04 #2A3C08 #50720F #76A816

Accessibility & contrast

On white

12.01
#2A3C08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A3C08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C08
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C08#FFFFFF#000000##FFFFFF
##2A3C081.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403701
Deuteranopia (green-blind)
#3D360D
Tritanopia (blue-blind)
#2C3932
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a3c08;
/* rgb */ color: rgb(42, 60, 8);
/* oklch */ color: oklch(32.9% 0.077 127.3);
Tailwind
colors: {
  custom: {
    50: '#66714c',
    500: '#2a3c08',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c08;
$custom-light: #66714c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c08",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 8
  },
  "hsl": {
    "h": 80.769,
    "s": 76.471,
    "l": 13.333
  },
  "oklch": {
    "l": 0.32895,
    "c": 0.07743,
    "h": 127.3
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#2A3C08
secondary
#43257B
accent
#35F377
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #2A3C08

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

Preview Lab → · Contrast checker → · Palette generator →

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