#2A581B#2A581B

#2A581B is a dark, moderate green. Relative luminance 0.076; OKLCH L 41.3% C 0.104 H 138.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2A581B
RGBrgb(42, 88, 27)
HSLhsl(105, 53%, 23%)
HSVhsv(105, 69%, 35%)
CMYKcmyk(52.3%, 0%, 69.3%, 65.5%)
CIE-LABlab(33.03, -28.56, 29.65)
CIE-LCHlch(33.03, 41.17, 133.93°)
OKLaboklab(41.31% -0.0786 0.0686)
OKLCHoklch(41.31% 0.104 138.9)
XYZxyz(4.6422, 7.5505, 2.2495)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A581B #491B58
analogous
#48581B #2A581B #1B582B
triadic
#2A581B #1B2A58 #581B2A
tetradic
#2A581B #1B4858 #491B58 #582B1B
square
#2A581B #1B4858 #491B58 #582B1B
split-complementary
#2A581B #2B1B58 #581B48
monochromatic
#0B1707 #14290D #2A581B #408729 #57B638

Accessibility & contrast

On white

8.37
#2A581B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A581B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A581B
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A581B#FFFFFF#000000##FFFFFF
##2A581B1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5013
Deuteranopia (green-blind)
#554C20
Tritanopia (blue-blind)
#26554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a581b;
/* rgb */ color: rgb(42, 88, 27);
/* oklch */ color: oklch(41.3% 0.104 138.9);
Tailwind
colors: {
  custom: {
    50: '#68875a',
    500: '#2a581b',
    950: '#000000',
  },
}
SCSS
$custom: #2a581b;
$custom-light: #68875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a581b",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 27
  },
  "hsl": {
    "h": 105.246,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41308,
    "c": 0.1043,
    "h": 138.9
  },
  "luminance": 0.07551
}

Semantic roles & 50–950 ramp

primary
#2A581B
secondary
#7B418E
accent
#4BDCB9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A581B

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

Preview Lab → · Contrast checker → · Palette generator →

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