#31741B#31741B

#31741B is a mid, vivid green. Relative luminance 0.132; OKLCH L 49.7% C 0.139 H 139.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#31741B
RGBrgb(49, 116, 27)
HSLhsl(105, 62%, 28%)
HSVhsv(105, 77%, 45%)
CMYKcmyk(57.8%, 0%, 76.7%, 54.5%)
CIE-LABlab(43.10, -38.29, 40.28)
CIE-LCHlch(43.10, 55.57, 133.55°)
OKLaboklab(49.68% -0.1054 0.0908)
OKLCHoklch(49.68% 0.139 139.2)
XYZxyz(7.7095, 13.2222, 3.1826)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31741B #5E1B74
analogous
#5D741B #31741B #1B7432
triadic
#31741B #1B3174 #741B31
tetradic
#31741B #1B5D74 #5E1B74 #74321B
square
#31741B #1B5D74 #5E1B74 #74321B
split-complementary
#31741B #321B74 #741B5D
monochromatic
#0A1906 #1C420F #31741B #46A627 #5ED139

Accessibility & contrast

On white

5.76
#31741B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#31741B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31741B
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31741B#FFFFFF#000000##FFFFFF
##31741B1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#78690A
Deuteranopia (green-blind)
#6F6424
Tritanopia (blue-blind)
#2A7063
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #31741b;
/* rgb */ color: rgb(49, 116, 27);
/* oklch */ color: oklch(49.7% 0.139 139.2);
Tailwind
colors: {
  custom: {
    50: '#719d5e',
    500: '#31741b',
    950: '#000000',
  },
}
SCSS
$custom: #31741b;
$custom-light: #719d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#31741b",
  "rgb": {
    "r": 49,
    "g": 116,
    "b": 27
  },
  "hsl": {
    "h": 105.169,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49676,
    "c": 0.13912,
    "h": 139.2
  },
  "luminance": 0.13223
}

Semantic roles & 50–950 ramp

primary
#31741B
secondary
#8F42A9
accent
#42E5BD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31741B

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

Preview Lab → · Contrast checker → · Palette generator →

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