#2A5840#2A5840

#2A5840 is a dark, moderate green. Relative luminance 0.078; OKLCH L 42.0% C 0.065 H 159.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2A5840
RGBrgb(42, 88, 64)
HSLhsl(149, 35%, 25%)
HSVhsv(149, 52%, 35%)
CMYKcmyk(52.3%, 0%, 27.3%, 65.5%)
CIE-LABlab(33.65, -22.16, 9.16)
CIE-LCHlch(33.65, 23.97, 157.54°)
OKLaboklab(42.02% -0.061 0.0234)
OKLCHoklch(42.02% 0.065 159)
XYZxyz(5.3696, 7.8414, 6.0801)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5840 #582A42
analogous
#2B582A #2A5840 #2A5857
triadic
#2A5840 #402A58 #58402A
tetradic
#2A5840 #2A2B58 #582A42 #58572A
square
#2A5840 #2A2B58 #582A42 #58572A
split-complementary
#2A5840 #572A58 #582A2B
monochromatic
#0A150F #162F22 #2A5840 #3E815E #52AB7C

Accessibility & contrast

On white

8.18
#2A5840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A5840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5840
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5840#FFFFFF#000000##FFFFFF
##2A58401.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#57523F
Deuteranopia (green-blind)
#504D41
Tritanopia (blue-blind)
#1D5851
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a5840;
/* rgb */ color: rgb(42, 88, 64);
/* oklch */ color: oklch(42.0% 0.065 159.0);
Tailwind
colors: {
  custom: {
    50: '#678774',
    500: '#2a5840',
    950: '#000000',
  },
}
SCSS
$custom: #2a5840;
$custom-light: #678774;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5840",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 64
  },
  "hsl": {
    "h": 148.696,
    "s": 35.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.4202,
    "c": 0.06529,
    "h": 159
  },
  "luminance": 0.07842
}

Semantic roles & 50–950 ramp

primary
#2A5840
secondary
#8A5370
accent
#5C96CB
background
#F6F8F7
surface
#EBEFED
border
#C6CAC8
text
#060B08
muted
#7A7C7B

Preview Lab

Preview with #2A5840

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

Preview Lab → · Contrast checker → · Palette generator →

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