#2A5740#2A5740

#2A5740 is a dark, moderate green. Relative luminance 0.077; OKLCH L 41.7% C 0.064 H 159.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2A5740
RGBrgb(42, 87, 64)
HSLhsl(149, 35%, 25%)
HSVhsv(149, 52%, 34%)
CMYKcmyk(51.7%, 0%, 26.4%, 65.9%)
CIE-LABlab(33.30, -21.64, 8.68)
CIE-LCHlch(33.30, 23.31, 158.15°)
OKLaboklab(41.74% -0.0596 0.0222)
OKLCHoklch(41.74% 0.064 159.6)
XYZxyz(5.2880, 7.6784, 6.0529)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5740 #572A41
analogous
#2A572A #2A5740 #2A5756
triadic
#2A5740 #402A57 #57402A
tetradic
#2A5740 #2A2A57 #572A41 #57562A
square
#2A5740 #2A2A57 #572A41 #57562A
split-complementary
#2A5740 #562A57 #572A2A
monochromatic
#0A150F #162E22 #2A5740 #3E805E #52AA7D

Accessibility & contrast

On white

8.28
#2A5740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2A5740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5740
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5740#FFFFFF#000000##FFFFFF
##2A57401.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#56513F
Deuteranopia (green-blind)
#4F4C41
Tritanopia (blue-blind)
#1D5751
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a5740;
/* rgb */ color: rgb(42, 87, 64);
/* oklch */ color: oklch(41.7% 0.064 159.6);
Tailwind
colors: {
  custom: {
    50: '#678774',
    500: '#2a5740',
    950: '#000000',
  },
}
SCSS
$custom: #2a5740;
$custom-light: #678774;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5740",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 64
  },
  "hsl": {
    "h": 149.333,
    "s": 34.884,
    "l": 25.294
  },
  "oklch": {
    "l": 0.41738,
    "c": 0.06362,
    "h": 159.6
  },
  "luminance": 0.07679
}

Semantic roles & 50–950 ramp

primary
#2A5740
secondary
#89536F
accent
#5D95CB
background
#F6F8F7
surface
#EBEFED
border
#C6CAC8
text
#060B08
muted
#7A7C7B

Preview Lab

Preview with #2A5740

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

Preview Lab → · Contrast checker → · Palette generator →

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