#2A4F13#2A4F13

#2A4F13 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.098 H 135.8°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2A4F13
RGBrgb(42, 79, 19)
HSLhsl(97, 61%, 19%)
HSVhsv(97, 76%, 31%)
CMYKcmyk(46.8%, 0%, 75.9%, 69%)
CIE-LABlab(29.74, -25.17, 29.92)
CIE-LCHlch(29.74, 39.10, 130.07°)
OKLaboklab(38.59% -0.07 0.068)
OKLCHoklch(38.59% 0.098 135.8)
XYZxyz(3.8683, 6.1310, 1.5955)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F13 #38134F
analogous
#484F13 #2A4F13 #134F1A
triadic
#2A4F13 #132A4F #4F132A
tetradic
#2A4F13 #13484F #38134F #4F1A13
square
#2A4F13 #13484F #38134F #4F1A13
split-complementary
#2A4F13 #1A134F #4F1348
monochromatic
#0D1906 #101E07 #2A4F13 #44801F #5EB22B

Accessibility & contrast

On white

9.43
#2A4F13 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A4F13 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F13
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F13#FFFFFF#000000##FFFFFF
##2A4F131.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52480A
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#294C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f13;
/* rgb */ color: rgb(42, 79, 19);
/* oklch */ color: oklch(38.6% 0.098 135.8);
Tailwind
colors: {
  custom: {
    50: '#678055',
    500: '#2a4f13',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f13;
$custom-light: #678055;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f13",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 19
  },
  "hsl": {
    "h": 97,
    "s": 61.224,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38587,
    "c": 0.09761,
    "h": 135.8
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#2A4F13
secondary
#683688
accent
#43E4A7
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4F13

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

Preview Lab → · Contrast checker → · Palette generator →

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