#31941B#31941B

#31941B is a mid, vivid green. Relative luminance 0.219; OKLCH L 58.6% C 0.178 H 140.7°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#31941B
RGBrgb(49, 148, 27)
HSLhsl(109, 69%, 34%)
HSVhsv(109, 82%, 58%)
CMYKcmyk(66.9%, 0%, 81.8%, 42%)
CIE-LABlab(53.93, -50.22, 50.76)
CIE-LCHlch(53.93, 71.41, 134.70°)
OKLaboklab(58.64% -0.1375 0.1127)
OKLCHoklch(58.64% 0.178 140.7)
XYZxyz(12.0538, 21.9107, 4.6307)
Luminance0.2191 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31941B #7E1B94
analogous
#6E941B #31941B #1B9442
triadic
#31941B #1B3194 #941B31
tetradic
#31941B #1B6E94 #7E1B94 #94421B
square
#31941B #1B6E94 #7E1B94 #94421B
split-complementary
#31941B #421B94 #941B6E
monochromatic
#0F2C08 #206012 #31941B #42C824 #66DE4B

Accessibility & contrast

On white

3.90
#31941B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#31941B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31941B
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31941B#FFFFFF#000000##000000
##31941B1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#8C7E2A
Tritanopia (blue-blind)
#1F8F7E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #31941b;
/* rgb */ color: rgb(49, 148, 27);
/* oklch */ color: oklch(58.6% 0.178 140.7);
Tailwind
colors: {
  custom: {
    50: '#78b463',
    500: '#31941b',
    950: '#000000',
  },
}
SCSS
$custom: #31941b;
$custom-light: #78b463;
$custom-dark: #000000;
JSON
{
  "hex": "#31941b",
  "rgb": {
    "r": 49,
    "g": 148,
    "b": 27
  },
  "hsl": {
    "h": 109.091,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58638,
    "c": 0.17782,
    "h": 140.7
  },
  "luminance": 0.21912
}

Semantic roles & 50–950 ramp

primary
#31941B
secondary
#AB4BC0
accent
#3CECCC
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #31941B

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

Preview Lab → · Contrast checker → · Palette generator →

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