#155F31#155F31

#155F31 is a dark, moderate green. Relative luminance 0.086; OKLCH L 42.9% C 0.103 H 151.4°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#155F31
RGBrgb(21, 95, 49)
HSLhsl(143, 64%, 23%)
HSVhsv(143, 78%, 37%)
CMYKcmyk(77.9%, 0%, 48.4%, 62.7%)
CIE-LABlab(35.13, -33.61, 20.07)
CIE-LCHlch(35.13, 39.15, 149.16°)
OKLaboklab(42.94% -0.0904 0.0493)
OKLCHoklch(42.94% 0.103 151.4)
XYZxyz(4.9554, 8.5650, 4.2972)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#155F31 #5F1543
analogous
#1E5F15 #155F31 #155F56
triadic
#155F31 #31155F #5F3115
tetradic
#155F31 #151E5F #5F1543 #5F5615
square
#155F31 #151E5F #5F1543 #5F5615
split-complementary
#155F31 #56155F #5F151E
monochromatic
#06190D #0A2D17 #155F31 #20914B #2BC365

Accessibility & contrast

On white

7.74
#155F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#155F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #155F31
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##155F31#FFFFFF#000000##FFFFFF
##155F311.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F562D
Deuteranopia (green-blind)
#575034
Tritanopia (blue-blind)
#005D54
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #155f31;
/* rgb */ color: rgb(21, 95, 49);
/* oklch */ color: oklch(42.9% 0.103 151.4);
Tailwind
colors: {
  custom: {
    50: '#5f8d6a',
    500: '#155f31',
    950: '#000000',
  },
}
SCSS
$custom: #155f31;
$custom-light: #5f8d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#155f31",
  "rgb": {
    "r": 21,
    "g": 95,
    "b": 49
  },
  "hsl": {
    "h": 142.703,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42943,
    "c": 0.10301,
    "h": 151.4
  },
  "luminance": 0.08566
}

Semantic roles & 50–950 ramp

primary
#155F31
secondary
#963A73
accent
#41A8E7
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #155F31

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

Preview Lab → · Contrast checker → · Palette generator →

#155F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva