#31841C#31841C

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

Color values

HEX#31841C
RGBrgb(49, 132, 28)
HSLhsl(108, 65%, 31%)
HSVhsv(108, 79%, 52%)
CMYKcmyk(62.9%, 0%, 78.8%, 48.2%)
CIE-LABlab(48.56, -44.40, 45.31)
CIE-LCHlch(48.56, 63.43, 134.42°)
OKLaboklab(54.19% -0.1218 0.1015)
OKLCHoklch(54.19% 0.159 140.2)
XYZxyz(9.7270, 17.2384, 3.9131)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31841C #6F1C84
analogous
#65841C #31841C #1C843B
triadic
#31841C #1C3184 #841C31
tetradic
#31841C #1C6584 #6F1C84 #843B1C
square
#31841C #1C6584 #6F1C84 #843B1C
split-complementary
#31841C #3B1C84 #841C65
monochromatic
#0C1F07 #1E5211 #31841C #44B627 #61D743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31841C#FFFFFF#000000##FFFFFF
##31841C1.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)
#887703
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#258070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #31841c;
/* rgb */ color: rgb(49, 132, 28);
/* oklch */ color: oklch(54.2% 0.159 140.2);
Tailwind
colors: {
  custom: {
    50: '#74a961',
    500: '#31841c',
    950: '#000000',
  },
}
SCSS
$custom: #31841c;
$custom-light: #74a961;
$custom-dark: #000000;
JSON
{
  "hex": "#31841c",
  "rgb": {
    "r": 49,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 107.885,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5419,
    "c": 0.15851,
    "h": 140.2
  },
  "luminance": 0.17239
}

Semantic roles & 50–950 ramp

primary
#31841C
secondary
#A045B7
accent
#40E8C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #31841C

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

Preview Lab → · Contrast checker → · Palette generator →

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