#28531B#28531B

#28531B is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.7% C 0.098 H 139.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#28531B
RGBrgb(40, 83, 27)
HSLhsl(106, 51%, 22%)
HSVhsv(106, 67%, 33%)
CMYKcmyk(51.8%, 0%, 67.5%, 67.5%)
CIE-LABlab(31.15, -26.95, 27.55)
CIE-LCHlch(31.15, 38.54, 134.38°)
OKLaboklab(39.74% -0.0741 0.0641)
OKLCHoklch(39.74% 0.098 139.1)
XYZxyz(4.1660, 6.7165, 2.1136)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28531B #461B53
analogous
#44531B #28531B #1B532A
triadic
#28531B #1B2853 #531B28
tetradic
#28531B #1B4453 #461B53 #532A1B
square
#28531B #1B4453 #461B53 #532A1B
split-complementary
#28531B #2A1B53 #531B44
monochromatic
#0B1708 #12250C #28531B #3E812A #55AF39

Accessibility & contrast

On white

8.96
#28531B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#28531B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28531B
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28531B#FFFFFF#000000##FFFFFF
##28531B1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C15
Deuteranopia (green-blind)
#504820
Tritanopia (blue-blind)
#245047
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #28531b;
/* rgb */ color: rgb(40, 83, 27);
/* oklch */ color: oklch(39.7% 0.098 139.1);
Tailwind
colors: {
  custom: {
    50: '#66845a',
    500: '#28531b',
    950: '#000000',
  },
}
SCSS
$custom: #28531b;
$custom-light: #66845a;
$custom-dark: #000000;
JSON
{
  "hex": "#28531b",
  "rgb": {
    "r": 40,
    "g": 83,
    "b": 27
  },
  "hsl": {
    "h": 106.071,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.39743,
    "c": 0.09797,
    "h": 139.1
  },
  "luminance": 0.06717
}

Semantic roles & 50–950 ramp

primary
#28531B
secondary
#784189
accent
#4DDABA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #28531B

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

Preview Lab → · Contrast checker → · Palette generator →

#28531B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva