#2A4B0F#2A4B0F

#2A4B0F is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.4% C 0.095 H 134.2°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#2A4B0F
RGBrgb(42, 75, 15)
HSLhsl(93, 67%, 18%)
HSVhsv(93, 80%, 29%)
CMYKcmyk(44%, 0%, 80%, 70.6%)
CIE-LABlab(28.27, -23.58, 30.18)
CIE-LCHlch(28.27, 38.30, 127.99°)
OKLaboklab(37.37% -0.066 0.0679)
OKLCHoklch(37.37% 0.095 134.2)
XYZxyz(3.5571, 5.5587, 1.3374)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4B0F #300F4B
analogous
#484B0F #2A4B0F #0F4B12
triadic
#2A4B0F #0F2A4B #4B0F2A
tetradic
#2A4B0F #0F484B #300F4B #4B120F
square
#2A4B0F #0F484B #300F4B #4B120F
split-complementary
#2A4B0F #120F4B #4B0F48
monochromatic
#0E1A05 #0E1A05 #2A4B0F #477E19 #63B123

Accessibility & contrast

On white

9.94
#2A4B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4B0F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4B0F#FFFFFF#000000##FFFFFF
##2A4B0F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4b0f;
/* rgb */ color: rgb(42, 75, 15);
/* oklch */ color: oklch(37.4% 0.095 134.2);
Tailwind
colors: {
  custom: {
    50: '#677d52',
    500: '#2a4b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4b0f;
$custom-light: #677d52;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4b0f",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 15
  },
  "hsl": {
    "h": 93,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37374,
    "c": 0.09473,
    "h": 134.2
  },
  "luminance": 0.05559
}

Semantic roles & 50–950 ramp

primary
#2A4B0F
secondary
#5F3085
accent
#3EEA9C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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