#31841B#31841B

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

Color values

HEX#31841B
RGBrgb(49, 132, 27)
HSLhsl(107, 66%, 31%)
HSVhsv(107, 80%, 52%)
CMYKcmyk(62.9%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.55, -44.47, 45.65)
CIE-LCHlch(48.55, 63.72, 134.25°)
OKLaboklab(54.18% -0.122 0.102)
OKLCHoklch(54.18% 0.159 140.1)
XYZxyz(9.7153, 17.2337, 3.8512)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31841B #6E1B84
analogous
#65841B #31841B #1B8439
triadic
#31841B #1B3184 #841B31
tetradic
#31841B #1B6584 #6E1B84 #84391B
square
#31841B #1B6584 #6E1B84 #84391B
split-complementary
#31841B #391B84 #841B65
monochromatic
#0B1E06 #1E5111 #31841B #44B725 #61D841

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31841B#FFFFFF#000000##FFFFFF
##31841B1.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)
#887701
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#257F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #31841b;
/* rgb */ color: rgb(49, 132, 27);
/* oklch */ color: oklch(54.2% 0.159 140.1);
Tailwind
colors: {
  custom: {
    50: '#74a960',
    500: '#31841b',
    950: '#000000',
  },
}
SCSS
$custom: #31841b;
$custom-light: #74a960;
$custom-dark: #000000;
JSON
{
  "hex": "#31841b",
  "rgb": {
    "r": 49,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 107.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54184,
    "c": 0.15906,
    "h": 140.1
  },
  "luminance": 0.17235
}

Semantic roles & 50–950 ramp

primary
#31841B
secondary
#9F43B7
accent
#3FE9C5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #31841B

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

Preview Lab → · Contrast checker → · Palette generator →

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