#28541F#28541F

#28541F is a dark, moderate green. Relative luminance 0.069; OKLCH L 40.1% C 0.096 H 140.4°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#28541F
RGBrgb(40, 84, 31)
HSLhsl(110, 46%, 23%)
HSVhsv(110, 63%, 33%)
CMYKcmyk(52.4%, 0%, 63.1%, 67.1%)
CIE-LABlab(31.56, -26.93, 25.92)
CIE-LCHlch(31.56, 37.37, 136.09°)
OKLaboklab(40.09% -0.0737 0.0611)
OKLCHoklch(40.09% 0.096 140.4)
XYZxyz(4.2925, 6.8904, 2.3998)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28541F #4B1F54
analogous
#43541F #28541F #1F5430
triadic
#28541F #1F2854 #541F28
tetradic
#28541F #1F4354 #4B1F54 #54301F
square
#28541F #1F4354 #4B1F54 #54301F
split-complementary
#28541F #301F54 #541F43
monochromatic
#0B1608 #13270F #28541F #3D812F #53AD40

Accessibility & contrast

On white

8.83
#28541F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#28541F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28541F
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28541F#FFFFFF#000000##FFFFFF
##28541F1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564D1A
Deuteranopia (green-blind)
#504923
Tritanopia (blue-blind)
#245148
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #28541f;
/* rgb */ color: rgb(40, 84, 31);
/* oklch */ color: oklch(40.1% 0.096 140.4);
Tailwind
colors: {
  custom: {
    50: '#66845c',
    500: '#28541f',
    950: '#000000',
  },
}
SCSS
$custom: #28541f;
$custom-light: #66845c;
$custom-dark: #000000;
JSON
{
  "hex": "#28541f",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 31
  },
  "hsl": {
    "h": 109.811,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.40089,
    "c": 0.09573,
    "h": 140.4
  },
  "luminance": 0.06891
}

Semantic roles & 50–950 ramp

primary
#28541F
secondary
#7D4689
accent
#52D6BF
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #28541F

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

Preview Lab → · Contrast checker → · Palette generator →

#28541F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva