#285138#285138

#285138 is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.7% C 0.063 H 155.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#285138
RGBrgb(40, 81, 56)
HSLhsl(143, 34%, 24%)
HSVhsv(143, 51%, 32%)
CMYKcmyk(50.6%, 0%, 30.9%, 68.2%)
CIE-LABlab(30.93, -20.98, 10.36)
CIE-LCHlch(30.93, 23.40, 153.73°)
OKLaboklab(39.72% -0.0574 0.0263)
OKLCHoklch(39.72% 0.063 155.4)
XYZxyz(4.5310, 6.6212, 4.7799)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285138 #512841
analogous
#2C5128 #285138 #28514C
triadic
#285138 #382851 #513828
tetradic
#285138 #282C51 #512841 #514C28
square
#285138 #282C51 #512841 #514C28
split-complementary
#285138 #4C2851 #51282C
monochromatic
#0A140E #14281C #285138 #3C7A54 #50A371

Accessibility & contrast

On white

9.04
#285138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#285138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285138
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285138#FFFFFF#000000##FFFFFF
##2851381.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514B37
Deuteranopia (green-blind)
#4B4739
Tritanopia (blue-blind)
#1E504A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #285138;
/* rgb */ color: rgb(40, 81, 56);
/* oklch */ color: oklch(39.7% 0.063 155.4);
Tailwind
colors: {
  custom: {
    50: '#65826e',
    500: '#285138',
    950: '#000000',
  },
}
SCSS
$custom: #285138;
$custom-light: #65826e;
$custom-dark: #000000;
JSON
{
  "hex": "#285138",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 56
  },
  "hsl": {
    "h": 143.415,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.39718,
    "c": 0.06319,
    "h": 155.4
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#285138
secondary
#845170
accent
#5EA0CA
background
#F6F7F6
surface
#EBEEEC
border
#C6C9C7
text
#060A07
muted
#7A7C7A

Preview Lab

Preview with #285138

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

Preview Lab → · Contrast checker → · Palette generator →

#285138 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva