#31942D#31942D

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

Color values

HEX#31942D
RGBrgb(49, 148, 45)
HSLhsl(118, 53%, 38%)
HSVhsv(118, 70%, 58%)
CMYKcmyk(66.9%, 0%, 69.6%, 42%)
CIE-LABlab(54.05, -48.83, 44.32)
CIE-LCHlch(54.05, 65.94, 137.77°)
OKLaboklab(58.77% -0.1328 0.1017)
OKLCHoklch(58.77% 0.167 142.6)
XYZxyz(12.3295, 22.0210, 6.0828)
Luminance0.2202 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31942D #902D94
analogous
#64942D #31942D #2D945C
triadic
#31942D #2D3194 #942D31
tetradic
#31942D #2D6494 #902D94 #945C2D
square
#31942D #2D6494 #902D94 #945C2D
split-complementary
#31942D #5C2D94 #942D64
monochromatic
#123610 #21651F #31942D #41C33B #6ED26A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31942D#FFFFFF#000000##000000
##31942D1.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)
#97861E
Deuteranopia (green-blind)
#8B7E37
Tritanopia (blue-blind)
#1B907F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #31942d;
/* rgb */ color: rgb(49, 148, 45);
/* oklch */ color: oklch(58.8% 0.167 142.6);
Tailwind
colors: {
  custom: {
    50: '#77b46b',
    500: '#31942d',
    950: '#000000',
  },
}
SCSS
$custom: #31942d;
$custom-light: #77b46b;
$custom-dark: #000000;
JSON
{
  "hex": "#31942d",
  "rgb": {
    "r": 49,
    "g": 148,
    "b": 45
  },
  "hsl": {
    "h": 117.67,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.58772,
    "c": 0.16728,
    "h": 142.6
  },
  "luminance": 0.22022
}

Semantic roles & 50–950 ramp

primary
#31942D
secondary
#B564B8
accent
#4BDDD7
background
#F7FBF6
surface
#EEF6EC
border
#C9D0C7
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #31942D

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

Preview Lab → · Contrast checker → · Palette generator →

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