#31741F#31741F

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

Color values

HEX#31741F
RGBrgb(49, 116, 31)
HSLhsl(107, 58%, 29%)
HSVhsv(107, 73%, 45%)
CMYKcmyk(57.8%, 0%, 73.3%, 54.5%)
CIE-LABlab(43.13, -37.95, 38.70)
CIE-LCHlch(43.13, 54.20, 134.44°)
OKLaboklab(49.71% -0.1042 0.0881)
OKLCHoklch(49.71% 0.136 139.8)
XYZxyz(7.7590, 13.2420, 3.4432)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31741F #621F74
analogous
#5C741F #31741F #1F7438
triadic
#31741F #1F3174 #741F31
tetradic
#31741F #1F5C74 #621F74 #74381F
square
#31741F #1F5C74 #621F74 #74381F
split-complementary
#31741F #381F74 #741F5C
monochromatic
#0A1806 #1D4412 #31741F #45A42C #5FCC41

Accessibility & contrast

On white

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

On black

3.65
#31741F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##31741F#FFFFFF#000000##FFFFFF
##31741F1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776912
Deuteranopia (green-blind)
#6F6427
Tritanopia (blue-blind)
#2A7063
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #31741f;
/* rgb */ color: rgb(49, 116, 31);
/* oklch */ color: oklch(49.7% 0.136 139.8);
Tailwind
colors: {
  custom: {
    50: '#719d60',
    500: '#31741f',
    950: '#000000',
  },
}
SCSS
$custom: #31741f;
$custom-light: #719d60;
$custom-dark: #000000;
JSON
{
  "hex": "#31741f",
  "rgb": {
    "r": 49,
    "g": 116,
    "b": 31
  },
  "hsl": {
    "h": 107.294,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.49709,
    "c": 0.13645,
    "h": 139.8
  },
  "luminance": 0.13243
}

Semantic roles & 50–950 ramp

primary
#31741F
secondary
#9347A8
accent
#47E1C0
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31741F

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

Preview Lab → · Contrast checker → · Palette generator →

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