#2A5334#2A5334

#2A5334 is a dark, moderate green. Relative luminance 0.069; OKLCH L 40.3% C 0.070 H 150.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2A5334
RGBrgb(42, 83, 52)
HSLhsl(135, 33%, 25%)
HSVhsv(135, 49%, 33%)
CMYKcmyk(49.4%, 0%, 37.3%, 67.5%)
CIE-LABlab(31.64, -22.24, 13.82)
CIE-LCHlch(31.64, 26.18, 148.14°)
OKLaboklab(40.29% -0.0605 0.0347)
OKLCHoklch(40.29% 0.07 150.2)
XYZxyz(4.6676, 6.9264, 4.3391)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5334 #532A49
analogous
#35532A #2A5334 #2A5349
triadic
#2A5334 #342A53 #53342A
tetradic
#2A5334 #2A3553 #532A49 #53492A
square
#2A5334 #2A3553 #532A49 #53492A
split-complementary
#2A5334 #492A53 #532A35
monochromatic
#0A140D #152A1B #2A5334 #3F7C4D #53A467

Accessibility & contrast

On white

8.80
#2A5334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2A5334 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5334
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5334#FFFFFF#000000##FFFFFF
##2A53341.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534D32
Deuteranopia (green-blind)
#4D4936
Tritanopia (blue-blind)
#22524B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a5334;
/* rgb */ color: rgb(42, 83, 52);
/* oklch */ color: oklch(40.3% 0.070 150.2);
Tailwind
colors: {
  custom: {
    50: '#66836b',
    500: '#2a5334',
    950: '#000000',
  },
}
SCSS
$custom: #2a5334;
$custom-light: #66836b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5334",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 52
  },
  "hsl": {
    "h": 134.634,
    "s": 32.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.40294,
    "c": 0.06979,
    "h": 150.2
  },
  "luminance": 0.06927
}

Semantic roles & 50–950 ramp

primary
#2A5334
secondary
#855479
accent
#5FAFC9
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060B06
muted
#7A7C7A

Preview Lab

Preview with #2A5334

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

Preview Lab → · Contrast checker → · Palette generator →

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