#2A501F#2A501F

#2A501F is a dark, moderate green. Relative luminance 0.063; OKLCH L 39.0% C 0.088 H 139.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2A501F
RGBrgb(42, 80, 31)
HSLhsl(107, 44%, 22%)
HSVhsv(107, 61%, 31%)
CMYKcmyk(47.5%, 0%, 61.2%, 68.6%)
CIE-LABlab(30.23, -24.31, 24.39)
CIE-LCHlch(30.23, 34.44, 134.91°)
OKLaboklab(39.03% -0.0667 0.0578)
OKLCHoklch(39.03% 0.088 139.1)
XYZxyz(4.0707, 6.3282, 2.3030)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A501F #451F50
analogous
#43501F #2A501F #1F502D
triadic
#2A501F #1F2A50 #501F2A
tetradic
#2A501F #1F4350 #451F50 #502D1F
square
#2A501F #1F4350 #451F50 #502D1F
split-complementary
#2A501F #2D1F50 #501F43
monochromatic
#0C1609 #13240E #2A501F #417C30 #58A841

Accessibility & contrast

On white

9.27
#2A501F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A501F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A501F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A501F#FFFFFF#000000##FFFFFF
##2A501F1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491A
Deuteranopia (green-blind)
#4D4623
Tritanopia (blue-blind)
#274D45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a501f;
/* rgb */ color: rgb(42, 80, 31);
/* oklch */ color: oklch(39.0% 0.088 139.1);
Tailwind
colors: {
  custom: {
    50: '#67815c',
    500: '#2a501f',
    950: '#000000',
  },
}
SCSS
$custom: #2a501f;
$custom-light: #67815c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a501f",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 31
  },
  "hsl": {
    "h": 106.531,
    "s": 44.144,
    "l": 21.765
  },
  "oklch": {
    "l": 0.39026,
    "c": 0.08825,
    "h": 139.1
  },
  "luminance": 0.06328
}

Semantic roles & 50–950 ramp

primary
#2A501F
secondary
#774685
accent
#54D4B7
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2A501F

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

Preview Lab → · Contrast checker → · Palette generator →

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