#31731A#31731A

#31731A is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.138 H 139.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#31731A
RGBrgb(49, 115, 26)
HSLhsl(104, 63%, 28%)
HSVhsv(104, 77%, 45%)
CMYKcmyk(57.4%, 0%, 77.4%, 54.9%)
CIE-LABlab(42.75, -37.96, 40.32)
CIE-LCHlch(42.75, 55.38, 133.28°)
OKLaboklab(49.38% -0.1046 0.0907)
OKLCHoklch(49.38% 0.138 139.1)
XYZxyz(7.5835, 12.9884, 3.0845)
Luminance0.1299 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31731A #5C1A73
analogous
#5E731A #31731A #1A732F
triadic
#31731A #1A3173 #731A31
tetradic
#31731A #1A5E73 #5C1A73 #732F1A
square
#31731A #1A5E73 #5C1A73 #732F1A
split-complementary
#31731A #2F1A73 #731A5E
monochromatic
#0B1906 #1C410F #31731A #46A525 #5ED236

Accessibility & contrast

On white

5.84
#31731A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#31731A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31731A
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31731A#FFFFFF#000000##FFFFFF
##31731A1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776808
Deuteranopia (green-blind)
#6E6323
Tritanopia (blue-blind)
#2A6F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #31731a;
/* rgb */ color: rgb(49, 115, 26);
/* oklch */ color: oklch(49.4% 0.138 139.1);
Tailwind
colors: {
  custom: {
    50: '#719c5d',
    500: '#31731a',
    950: '#000000',
  },
}
SCSS
$custom: #31731a;
$custom-light: #719c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#31731a",
  "rgb": {
    "r": 49,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 104.494,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49384,
    "c": 0.13845,
    "h": 139.1
  },
  "luminance": 0.12989
}

Semantic roles & 50–950 ramp

primary
#31731A
secondary
#8D41A8
accent
#42E6BC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #31731A

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

Preview Lab → · Contrast checker → · Palette generator →

#31731A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva