#31881F#31881F

#31881F is a mid, vivid green. Relative luminance 0.184; OKLCH L 55.3% C 0.162 H 140.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#31881F
RGBrgb(49, 136, 31)
HSLhsl(110, 63%, 33%)
HSVhsv(110, 77%, 53%)
CMYKcmyk(64%, 0%, 77.2%, 46.7%)
CIE-LABlab(49.93, -45.66, 45.58)
CIE-LCHlch(49.93, 64.52, 135.05°)
OKLaboklab(55.33% -0.125 0.1025)
OKLCHoklch(55.33% 0.162 140.7)
XYZxyz(10.3176, 18.3592, 4.2960)
Luminance0.1836 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31881F #761F88
analogous
#66881F #31881F #1F8841
triadic
#31881F #1F3188 #881F31
tetradic
#31881F #1F6688 #761F88 #88411F
square
#31881F #1F6688 #761F88 #88411F
split-complementary
#31881F #411F88 #881F66
monochromatic
#0D2408 #1F5614 #31881F #43BA2A #63D64B

Accessibility & contrast

On white

4.49
#31881F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#31881F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31881F
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31881F#FFFFFF#000000##000000
##31881F1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B08
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#238374
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #31881f;
/* rgb */ color: rgb(49, 136, 31);
/* oklch */ color: oklch(55.3% 0.162 140.7);
Tailwind
colors: {
  custom: {
    50: '#75ac63',
    500: '#31881f',
    950: '#000000',
  },
}
SCSS
$custom: #31881f;
$custom-light: #75ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#31881f",
  "rgb": {
    "r": 49,
    "g": 136,
    "b": 31
  },
  "hsl": {
    "h": 109.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5533,
    "c": 0.16166,
    "h": 140.7
  },
  "luminance": 0.1836
}

Semantic roles & 50–950 ramp

primary
#31881F
secondary
#A64AB9
accent
#42E6CA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #31881F

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

Preview Lab → · Contrast checker → · Palette generator →

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