#31931F#31931F

#31931F is a mid, vivid green. Relative luminance 0.216; OKLCH L 58.4% C 0.175 H 141.0°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#31931F
RGBrgb(49, 147, 31)
HSLhsl(111, 65%, 35%)
HSVhsv(111, 79%, 58%)
CMYKcmyk(66.7%, 0%, 78.9%, 42.4%)
CIE-LABlab(53.62, -49.62, 49.19)
CIE-LCHlch(53.62, 69.87, 135.25°)
OKLaboklab(58.39% -0.1357 0.11)
OKLCHoklch(58.39% 0.175 141)
XYZxyz(11.9471, 21.6181, 4.8392)
Luminance0.2162 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31931F #811F93
analogous
#6B931F #31931F #1F9347
triadic
#31931F #1F3193 #931F31
tetradic
#31931F #1F6B93 #811F93 #93471F
square
#31931F #1F6B93 #811F93 #93471F
split-complementary
#31931F #471F93 #931F6B
monochromatic
#0F2E0A #206014 #31931F #42C62A #67DA52

Accessibility & contrast

On white

3.94
#31931F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#31931F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31931F
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31931F#FFFFFF#000000##000000
##31931F1.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978501
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#1F8E7D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #31931f;
/* rgb */ color: rgb(49, 147, 31);
/* oklch */ color: oklch(58.4% 0.175 141.0);
Tailwind
colors: {
  custom: {
    50: '#77b464',
    500: '#31931f',
    950: '#000000',
  },
}
SCSS
$custom: #31931f;
$custom-light: #77b464;
$custom-dark: #000000;
JSON
{
  "hex": "#31931f",
  "rgb": {
    "r": 49,
    "g": 147,
    "b": 31
  },
  "hsl": {
    "h": 110.69,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58385,
    "c": 0.17469,
    "h": 141
  },
  "luminance": 0.21619
}

Semantic roles & 50–950 ramp

primary
#31931F
secondary
#AD50BE
accent
#40E8CE
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #31931F

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

Preview Lab → · Contrast checker → · Palette generator →

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