#31671F#31671F

#31671F is a mid, moderate green. Relative luminance 0.105; OKLCH L 46.0% C 0.119 H 138.9°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#31671F
RGBrgb(49, 103, 31)
HSLhsl(105, 54%, 26%)
HSVhsv(105, 70%, 40%)
CMYKcmyk(52.4%, 0%, 69.9%, 59.6%)
CIE-LABlab(38.64, -32.49, 33.95)
CIE-LCHlch(38.64, 46.99, 133.74°)
OKLaboklab(46.02% -0.0894 0.0781)
OKLCHoklch(46.02% 0.119 138.9)
XYZxyz(6.3640, 10.4519, 2.9781)
Luminance0.1045 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31671F #551F67
analogous
#55671F #31671F #1F6731
triadic
#31671F #1F3167 #671F31
tetradic
#31671F #1F5567 #551F67 #67311F
square
#31671F #1F5567 #551F67 #67311F
split-complementary
#31671F #311F67 #671F55
monochromatic
#0B1807 #1B3811 #31671F #47962D #5EC43C

Accessibility & contrast

On white

6.80
#31671F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#31671F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31671F
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31671F#FFFFFF#000000##FFFFFF
##31671F1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5E16
Deuteranopia (green-blind)
#635925
Tritanopia (blue-blind)
#2C6358
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #31671f;
/* rgb */ color: rgb(49, 103, 31);
/* oklch */ color: oklch(46.0% 0.119 138.9);
Tailwind
colors: {
  custom: {
    50: '#6f935e',
    500: '#31671f',
    950: '#000000',
  },
}
SCSS
$custom: #31671f;
$custom-light: #6f935e;
$custom-dark: #000000;
JSON
{
  "hex": "#31671f",
  "rgb": {
    "r": 49,
    "g": 103,
    "b": 31
  },
  "hsl": {
    "h": 105,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.46018,
    "c": 0.11874,
    "h": 138.9
  },
  "luminance": 0.10452
}

Semantic roles & 50–950 ramp

primary
#31671F
secondary
#86469B
accent
#4BDDB9
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D05
muted
#7B7E79

Preview Lab

Preview with #31671F

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

Preview Lab → · Contrast checker → · Palette generator →

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