#2A541C#2A541C

#2A541C is a dark, moderate green. Relative luminance 0.069; OKLCH L 40.2% C 0.097 H 138.7°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2A541C
RGBrgb(42, 84, 28)
HSLhsl(105, 50%, 22%)
HSVhsv(105, 67%, 33%)
CMYKcmyk(50%, 0%, 66.7%, 67.1%)
CIE-LABlab(31.62, -26.60, 27.58)
CIE-LCHlch(31.62, 38.32, 133.97°)
OKLaboklab(40.15% -0.0732 0.0643)
OKLCHoklch(40.15% 0.097 138.7)
XYZxyz(4.3346, 6.9164, 2.2050)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A541C #461C54
analogous
#46541C #2A541C #1C542A
triadic
#2A541C #1C2A54 #541C2A
tetradic
#2A541C #1C4654 #461C54 #542A1C
square
#2A541C #1C4654 #461C54 #542A1C
split-complementary
#2A541C #2A1C54 #541C46
monochromatic
#0B1708 #13260D #2A541C #41822B #58B03B

Accessibility & contrast

On white

8.81
#2A541C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A541C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A541C
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A541C#FFFFFF#000000##FFFFFF
##2A541C1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D16
Deuteranopia (green-blind)
#514920
Tritanopia (blue-blind)
#275148
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a541c;
/* rgb */ color: rgb(42, 84, 28);
/* oklch */ color: oklch(40.2% 0.097 138.7);
Tailwind
colors: {
  custom: {
    50: '#68845b',
    500: '#2a541c',
    950: '#000000',
  },
}
SCSS
$custom: #2a541c;
$custom-light: #68845b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a541c",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 28
  },
  "hsl": {
    "h": 105,
    "s": 50,
    "l": 21.961
  },
  "oklch": {
    "l": 0.40153,
    "c": 0.09742,
    "h": 138.7
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#2A541C
secondary
#78428A
accent
#4EDAB7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A541C

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

Preview Lab → · Contrast checker → · Palette generator →

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