#31841F#31841F

#31841F is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.2% C 0.157 H 140.5°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#31841F
RGBrgb(49, 132, 31)
HSLhsl(109, 62%, 32%)
HSVhsv(109, 77%, 52%)
CMYKcmyk(62.9%, 0%, 76.5%, 48.2%)
CIE-LABlab(48.58, -44.18, 44.24)
CIE-LCHlch(48.58, 62.52, 134.96°)
OKLaboklab(54.21% -0.121 0.0997)
OKLCHoklch(54.21% 0.157 140.5)
XYZxyz(9.7647, 17.2535, 4.1117)
Luminance0.1725 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31841F #721F84
analogous
#64841F #31841F #1F8440
triadic
#31841F #1F3184 #841F31
tetradic
#31841F #1F6484 #721F84 #84401F
square
#31841F #1F6484 #721F84 #84401F
split-complementary
#31841F #401F84 #841F64
monochromatic
#0C2108 #1F5213 #31841F #43B62B #62D449

Accessibility & contrast

On white

4.72
#31841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#31841F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31841F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31841F#FFFFFF#000000##FFFFFF
##31841F1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780B
Deuteranopia (green-blind)
#7D712A
Tritanopia (blue-blind)
#258071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #31841f;
/* rgb */ color: rgb(49, 132, 31);
/* oklch */ color: oklch(54.2% 0.157 140.5);
Tailwind
colors: {
  custom: {
    50: '#74a962',
    500: '#31841f',
    950: '#000000',
  },
}
SCSS
$custom: #31841f;
$custom-light: #74a962;
$custom-dark: #000000;
JSON
{
  "hex": "#31841f",
  "rgb": {
    "r": 49,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 109.307,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54212,
    "c": 0.15678,
    "h": 140.5
  },
  "luminance": 0.17254
}

Semantic roles & 50–950 ramp

primary
#31841F
secondary
#A348B7
accent
#43E5C8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31841F

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

Preview Lab → · Contrast checker → · Palette generator →

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