#2A4B08#2A4B08

#2A4B08 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.3% C 0.099 H 133.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2A4B08
RGBrgb(42, 75, 8)
HSLhsl(90, 81%, 16%)
HSVhsv(90, 89%, 29%)
CMYKcmyk(44%, 0%, 89.3%, 70.6%)
CIE-LABlab(28.23, -24.05, 32.83)
CIE-LCHlch(28.23, 40.70, 126.22°)
OKLaboklab(37.32% -0.0678 0.0722)
OKLCHoklch(37.32% 0.099 133.2)
XYZxyz(3.5147, 5.5418, 1.1142)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4B08 #29084B
analogous
#4B4B08 #2A4B08 #094B08
triadic
#2A4B08 #082A4B #4B082A
tetradic
#2A4B08 #084B4B #29084B #4B0809
square
#2A4B08 #084B4B #29084B #4B0809
split-complementary
#2A4B08 #08094B #4B084B
monochromatic
#0F1C03 #0F1C03 #2A4B08 #49820E #68BA14

Accessibility & contrast

On white

9.96
#2A4B08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A4B08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4B08
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4B08#FFFFFF#000000##FFFFFF
##2A4B081.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4400
Deuteranopia (green-blind)
#4A4210
Tritanopia (blue-blind)
#2A483F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a4b08;
/* rgb */ color: rgb(42, 75, 8);
/* oklch */ color: oklch(37.3% 0.099 133.2);
Tailwind
colors: {
  custom: {
    50: '#677d4e',
    500: '#2a4b08',
    950: '#000000',
  },
}
SCSS
$custom: #2a4b08;
$custom-light: #677d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4b08",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 8
  },
  "hsl": {
    "h": 89.552,
    "s": 80.723,
    "l": 16.275
  },
  "oklch": {
    "l": 0.37322,
    "c": 0.0991,
    "h": 133.2
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

primary
#2A4B08
secondary
#572689
accent
#31F792
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4B08

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

Preview Lab → · Contrast checker → · Palette generator →

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