#31841A#31841A

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

Color values

HEX#31841A
RGBrgb(49, 132, 26)
HSLhsl(107, 67%, 31%)
HSVhsv(107, 80%, 52%)
CMYKcmyk(62.9%, 0%, 80.3%, 48.2%)
CIE-LABlab(48.55, -44.53, 45.98)
CIE-LCHlch(48.55, 64.01, 134.08°)
OKLaboklab(54.18% -0.1223 0.1026)
OKLCHoklch(54.18% 0.16 140)
XYZxyz(9.7039, 17.2292, 3.7913)
Luminance0.1723 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31841A #6D1A84
analogous
#66841A #31841A #1A8438
triadic
#31841A #1A3184 #841A31
tetradic
#31841A #1A6684 #6D1A84 #84381A
square
#31841A #1A6684 #6D1A84 #84381A
split-complementary
#31841A #381A84 #841A66
monochromatic
#0B1E06 #1E5110 #31841A #44B724 #61D93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31841A#FFFFFF#000000##FFFFFF
##31841A1.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)
#887700
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#267F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #31841a;
/* rgb */ color: rgb(49, 132, 26);
/* oklch */ color: oklch(54.2% 0.160 140.0);
Tailwind
colors: {
  custom: {
    50: '#74a960',
    500: '#31841a',
    950: '#000000',
  },
}
SCSS
$custom: #31841a;
$custom-light: #74a960;
$custom-dark: #000000;
JSON
{
  "hex": "#31841a",
  "rgb": {
    "r": 49,
    "g": 132,
    "b": 26
  },
  "hsl": {
    "h": 106.981,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54177,
    "c": 0.15959,
    "h": 140
  },
  "luminance": 0.1723
}

Semantic roles & 50–950 ramp

primary
#31841A
secondary
#9E42B8
accent
#3EEAC5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #31841A

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

Preview Lab → · Contrast checker → · Palette generator →

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