#2B5940#2B5940

#2B5940 is a dark, moderate green. Relative luminance 0.080; OKLCH L 42.4% C 0.066 H 158.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#2B5940
RGBrgb(43, 89, 64)
HSLhsl(147, 35%, 26%)
HSVhsv(147, 52%, 35%)
CMYKcmyk(51.7%, 0%, 28.1%, 65.1%)
CIE-LABlab(34.04, -22.38, 9.71)
CIE-LCHlch(34.04, 24.39, 156.54°)
OKLaboklab(42.35% -0.0615 0.0248)
OKLCHoklch(42.35% 0.066 158.1)
XYZxyz(5.4936, 8.0281, 6.1096)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5940 #592B44
analogous
#2D592B #2B5940 #2B5957
triadic
#2B5940 #402B59 #59402B
tetradic
#2B5940 #2B2D59 #592B44 #59572B
square
#2B5940 #2B2D59 #592B44 #59572B
split-complementary
#2B5940 #572B59 #592B2D
monochromatic
#0A150F #173022 #2B5940 #3F825E #53AC7B

Accessibility & contrast

On white

8.06
#2B5940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2B5940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5940
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5940#FFFFFF#000000##FFFFFF
##2B59401.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#58533F
Deuteranopia (green-blind)
#514E42
Tritanopia (blue-blind)
#1F5852
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2b5940;
/* rgb */ color: rgb(43, 89, 64);
/* oklch */ color: oklch(42.4% 0.066 158.1);
Tailwind
colors: {
  custom: {
    50: '#688874',
    500: '#2b5940',
    950: '#000000',
  },
}
SCSS
$custom: #2b5940;
$custom-light: #688874;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5940",
  "rgb": {
    "r": 43,
    "g": 89,
    "b": 64
  },
  "hsl": {
    "h": 147.391,
    "s": 34.848,
    "l": 25.882
  },
  "oklch": {
    "l": 0.4235,
    "c": 0.06627,
    "h": 158.1
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

primary
#2B5940
secondary
#8B5572
accent
#5D99CB
background
#F6F8F7
surface
#EBF0ED
border
#C6CBC8
text
#060B08
muted
#7A7C7B

Preview Lab

Preview with #2B5940

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

Preview Lab → · Contrast checker → · Palette generator →

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