#31942A#31942A

#31942A is a mid, vivid green. Relative luminance 0.220; OKLCH L 58.7% C 0.169 H 142.2°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#31942A
RGBrgb(49, 148, 42)
HSLhsl(116, 56%, 37%)
HSVhsv(116, 72%, 58%)
CMYKcmyk(66.9%, 0%, 71.6%, 42%)
CIE-LABlab(54.03, -49.11, 45.53)
CIE-LCHlch(54.03, 66.97, 137.17°)
OKLaboklab(58.75% -0.1337 0.1039)
OKLCHoklch(58.75% 0.169 142.2)
XYZxyz(12.2738, 21.9987, 5.7894)
Luminance0.2200 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31942A #8D2A94
analogous
#66942A #31942A #2A9458
triadic
#31942A #2A3194 #942A31
tetradic
#31942A #2A6694 #8D2A94 #94582A
square
#31942A #2A6694 #8D2A94 #94582A
split-complementary
#31942A #582A94 #942A66
monochromatic
#11350F #21641C #31942A #41C438 #6CD365

Accessibility & contrast

On white

3.89
#31942A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#31942A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31942A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31942A#FFFFFF#000000##000000
##31942A1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978619
Deuteranopia (green-blind)
#8C7E34
Tritanopia (blue-blind)
#1C8F7F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #31942a;
/* rgb */ color: rgb(49, 148, 42);
/* oklch */ color: oklch(58.7% 0.169 142.2);
Tailwind
colors: {
  custom: {
    50: '#77b46a',
    500: '#31942a',
    950: '#000000',
  },
}
SCSS
$custom: #31942a;
$custom-light: #77b46a;
$custom-dark: #000000;
JSON
{
  "hex": "#31942a",
  "rgb": {
    "r": 49,
    "g": 148,
    "b": 42
  },
  "hsl": {
    "h": 116.038,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.58745,
    "c": 0.16932,
    "h": 142.2
  },
  "luminance": 0.22
}

Semantic roles & 50–950 ramp

primary
#31942A
secondary
#B460B9
accent
#49DFD5
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #31942A

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

Preview Lab → · Contrast checker → · Palette generator →

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