#31842E#31842E

#31842E is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.4% C 0.146 H 142.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#31842E
RGBrgb(49, 132, 46)
HSLhsl(118, 48%, 35%)
HSVhsv(118, 65%, 52%)
CMYKcmyk(62.9%, 0%, 65.2%, 48.2%)
CIE-LABlab(48.70, -42.76, 38.04)
CIE-LCHlch(48.70, 57.23, 138.34°)
OKLaboklab(54.35% -0.1163 0.0886)
OKLCHoklch(54.35% 0.146 142.7)
XYZxyz(10.0105, 17.3518, 5.4059)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31842E #812E84
analogous
#5C842E #31842E #2E8456
triadic
#31842E #2E3184 #842E31
tetradic
#31842E #2E5C84 #812E84 #84562E
square
#31842E #2E5C84 #812E84 #84562E
split-complementary
#31842E #562E84 #842E5C
monochromatic
#0F290E #20571E #31842E #42B13E #67C964

Accessibility & contrast

On white

4.70
#31842E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#31842E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31842E
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31842E#FFFFFF#000000##FFFFFF
##31842E1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877824
Deuteranopia (green-blind)
#7D7135
Tritanopia (blue-blind)
#228072
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #31842e;
/* rgb */ color: rgb(49, 132, 46);
/* oklch */ color: oklch(54.4% 0.146 142.7);
Tailwind
colors: {
  custom: {
    50: '#73a96a',
    500: '#31842e',
    950: '#000000',
  },
}
SCSS
$custom: #31842e;
$custom-light: #73a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#31842e",
  "rgb": {
    "r": 49,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 117.907,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.54352,
    "c": 0.14618,
    "h": 142.7
  },
  "luminance": 0.17353
}

Semantic roles & 50–950 ramp

primary
#31842E
secondary
#AD5EB0
accent
#50D8D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #31842E

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

Preview Lab → · Contrast checker → · Palette generator →

#31842E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva