#31741C#31741C

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

Color values

HEX#31741C
RGBrgb(49, 116, 28)
HSLhsl(106, 61%, 28%)
HSVhsv(106, 76%, 45%)
CMYKcmyk(57.8%, 0%, 75.9%, 54.5%)
CIE-LABlab(43.10, -38.21, 39.90)
CIE-LCHlch(43.10, 55.24, 133.76°)
OKLaboklab(49.68% -0.1051 0.0902)
OKLCHoklch(49.68% 0.138 139.4)
XYZxyz(7.7213, 13.2270, 3.2446)
Luminance0.1323 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31741C #5F1C74
analogous
#5D741C #31741C #1C7433
triadic
#31741C #1C3174 #741C31
tetradic
#31741C #1C5D74 #5F1C74 #74331C
square
#31741C #1C5D74 #5F1C74 #74331C
split-complementary
#31741C #331C74 #741C5D
monochromatic
#0A1906 #1C4310 #31741C #46A528 #5ED03B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31741C#FFFFFF#000000##FFFFFF
##31741C1.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)
#77690C
Deuteranopia (green-blind)
#6F6425
Tritanopia (blue-blind)
#2A7063
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #31741c;
/* rgb */ color: rgb(49, 116, 28);
/* oklch */ color: oklch(49.7% 0.138 139.4);
Tailwind
colors: {
  custom: {
    50: '#719d5e',
    500: '#31741c',
    950: '#000000',
  },
}
SCSS
$custom: #31741c;
$custom-light: #719d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#31741c",
  "rgb": {
    "r": 49,
    "g": 116,
    "b": 28
  },
  "hsl": {
    "h": 105.682,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.49684,
    "c": 0.13847,
    "h": 139.4
  },
  "luminance": 0.13228
}

Semantic roles & 50–950 ramp

primary
#31741C
secondary
#9043A8
accent
#44E4BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31741C

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

Preview Lab → · Contrast checker → · Palette generator →

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