#28531C#28531C

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

Color values

HEX#28531C
RGBrgb(40, 83, 28)
HSLhsl(107, 50%, 22%)
HSVhsv(107, 66%, 33%)
CMYKcmyk(51.8%, 0%, 66.3%, 67.5%)
CIE-LABlab(31.16, -26.83, 27.05)
CIE-LCHlch(31.16, 38.10, 134.78°)
OKLaboklab(39.76% -0.0737 0.0632)
OKLCHoklch(39.76% 0.097 139.4)
XYZxyz(4.1778, 6.7212, 2.1756)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28531C #471C53
analogous
#44531C #28531C #1C532C
triadic
#28531C #1C2853 #531C28
tetradic
#28531C #1C4453 #471C53 #532C1C
square
#28531C #1C4453 #471C53 #532C1C
split-complementary
#28531C #2C1C53 #531C44
monochromatic
#0B1708 #12250D #28531C #3E812B #54AF3B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28531C#FFFFFF#000000##FFFFFF
##28531C1.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)
#554C16
Deuteranopia (green-blind)
#504820
Tritanopia (blue-blind)
#245047
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #28531c;
/* rgb */ color: rgb(40, 83, 28);
/* oklch */ color: oklch(39.8% 0.097 139.4);
Tailwind
colors: {
  custom: {
    50: '#66845a',
    500: '#28531c',
    950: '#000000',
  },
}
SCSS
$custom: #28531c;
$custom-light: #66845a;
$custom-dark: #000000;
JSON
{
  "hex": "#28531c",
  "rgb": {
    "r": 40,
    "g": 83,
    "b": 28
  },
  "hsl": {
    "h": 106.909,
    "s": 49.55,
    "l": 21.765
  },
  "oklch": {
    "l": 0.39755,
    "c": 0.09706,
    "h": 139.4
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#28531C
secondary
#794289
accent
#4FD9BB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #28531C

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

Preview Lab → · Contrast checker → · Palette generator →

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