#2A3F08#2A3F08

#2A3F08 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.8% C 0.082 H 128.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2A3F08
RGBrgb(42, 63, 8)
HSLhsl(83, 77%, 14%)
HSVhsv(83, 87%, 25%)
CMYKcmyk(33.3%, 0%, 87.3%, 75.3%)
CIE-LABlab(23.88, -17.93, 28.76)
CIE-LCHlch(23.88, 33.90, 121.94°)
OKLaboklab(33.78% -0.0513 0.0638)
OKLCHoklch(33.78% 0.082 128.8)
XYZxyz(2.7762, 4.0647, 0.8680)
Luminance0.0406 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F08 #1D083F
analogous
#3F3908 #2A3F08 #0F3F08
triadic
#2A3F08 #082A3F #3F082A
tetradic
#2A3F08 #083F39 #1D083F #3F080F
square
#2A3F08 #083F39 #1D083F #3F080F
split-complementary
#2A3F08 #080F3F #39083F
monochromatic
#121B03 #121B03 #2A3F08 #4E750F #72AC16

Accessibility & contrast

On white

11.58
#2A3F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3F08
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F08#FFFFFF#000000##FFFFFF
##2A3F081.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3f08;
/* rgb */ color: rgb(42, 63, 8);
/* oklch */ color: oklch(33.8% 0.082 128.8);
Tailwind
colors: {
  custom: {
    50: '#66744c',
    500: '#2a3f08',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f08;
$custom-light: #66744c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f08",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 8
  },
  "hsl": {
    "h": 82.909,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.33778,
    "c": 0.08188,
    "h": 128.8
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#2A3F08
secondary
#47257E
accent
#34F47D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A3F08

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

Preview Lab → · Contrast checker → · Palette generator →

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