#31851B#31851B

#31851B is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.5% C 0.160 H 140.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#31851B
RGBrgb(49, 133, 27)
HSLhsl(108, 66%, 31%)
HSVhsv(108, 80%, 52%)
CMYKcmyk(63.2%, 0%, 79.7%, 47.8%)
CIE-LABlab(48.89, -44.84, 45.97)
CIE-LCHlch(48.89, 64.22, 134.28°)
OKLaboklab(54.46% -0.123 0.1027)
OKLCHoklch(54.46% 0.16 140.1)
XYZxyz(9.8515, 17.5062, 3.8966)
Luminance0.1751 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31851B #6F1B85
analogous
#66851B #31851B #1B853A
triadic
#31851B #1B3185 #851B31
tetradic
#31851B #1B6685 #6F1B85 #853A1B
square
#31851B #1B6685 #6F1B85 #853A1B
split-complementary
#31851B #3A1B85 #851B66
monochromatic
#0C1F06 #1E5211 #31851B #44B825 #61D942

Accessibility & contrast

On white

4.67
#31851B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#31851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #31851B
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31851B#FFFFFF#000000##FFFFFF
##31851B1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7F7227
Tritanopia (blue-blind)
#258071
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #31851b;
/* rgb */ color: rgb(49, 133, 27);
/* oklch */ color: oklch(54.5% 0.160 140.1);
Tailwind
colors: {
  custom: {
    50: '#74a960',
    500: '#31851b',
    950: '#000000',
  },
}
SCSS
$custom: #31851b;
$custom-light: #74a960;
$custom-dark: #000000;
JSON
{
  "hex": "#31851b",
  "rgb": {
    "r": 49,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 107.547,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54464,
    "c": 0.16026,
    "h": 140.1
  },
  "luminance": 0.17507
}

Semantic roles & 50–950 ramp

primary
#31851B
secondary
#A044B8
accent
#3FE9C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #31851B

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

Preview Lab → · Contrast checker → · Palette generator →

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