#31915F#31915F

#31915F is a mid, moderate green. Relative luminance 0.217; OKLCH L 58.7% C 0.118 H 156.7°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#31915F
RGBrgb(49, 145, 95)
HSLhsl(149, 49%, 38%)
HSVhsv(149, 66%, 57%)
CMYKcmyk(66.2%, 0%, 34.5%, 43.1%)
CIE-LABlab(53.74, -40.00, 18.55)
CIE-LCHlch(53.74, 44.09, 155.11°)
OKLaboklab(58.74% -0.1086 0.0468)
OKLCHoklch(58.74% 0.118 156.7)
XYZxyz(13.4564, 21.7286, 14.3091)
Luminance0.2173 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31915F #913163
analogous
#339131 #31915F #31918F
triadic
#31915F #5F3191 #915F31
tetradic
#31915F #313391 #913163 #918F31
square
#31915F #313391 #913163 #918F31
split-complementary
#31915F #8F3191 #913133
monochromatic
#123623 #226341 #31915F #41BF7D #6ECE9C

Accessibility & contrast

On white

3.93
#31915F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#31915F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31915F
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31915F#FFFFFF#000000##000000
##31915F1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#90865C
Deuteranopia (green-blind)
#847D62
Tritanopia (blue-blind)
#009084
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #31915f;
/* rgb */ color: rgb(49, 145, 95);
/* oklch */ color: oklch(58.7% 0.118 156.7);
Tailwind
colors: {
  custom: {
    50: '#74b28c',
    500: '#31915f',
    950: '#000000',
  },
}
SCSS
$custom: #31915f;
$custom-light: #74b28c;
$custom-dark: #000000;
JSON
{
  "hex": "#31915f",
  "rgb": {
    "r": 49,
    "g": 145,
    "b": 95
  },
  "hsl": {
    "h": 148.75,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.58736,
    "c": 0.11825,
    "h": 156.7
  },
  "luminance": 0.2173
}

Semantic roles & 50–950 ramp

primary
#31915F
secondary
#B66891
accent
#4F97D9
background
#F7FBF8
surface
#EDF6F0
border
#C8D0CB
text
#09110C
muted
#7B807D

Preview Lab

Preview with #31915F

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

Preview Lab → · Contrast checker → · Palette generator →

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