#31801B#31801B

#31801B is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.1% C 0.154 H 139.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#31801B
RGBrgb(49, 128, 27)
HSLhsl(107, 65%, 30%)
HSVhsv(107, 79%, 50%)
CMYKcmyk(61.7%, 0%, 78.9%, 49.8%)
CIE-LABlab(47.20, -42.96, 44.33)
CIE-LCHlch(47.20, 61.74, 134.10°)
OKLaboklab(53.06% -0.118 0.0993)
OKLCHoklch(53.06% 0.154 139.9)
XYZxyz(9.1832, 16.1696, 3.6738)
Luminance0.1617 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31801B #6A1B80
analogous
#63801B #31801B #1B8038
triadic
#31801B #1B3180 #801B31
tetradic
#31801B #1B6380 #6A1B80 #80381B
square
#31801B #1B6380 #6A1B80 #80381B
split-complementary
#31801B #381B80 #801B63
monochromatic
#0A1B06 #1E4D10 #31801B #44B326 #60D63F

Accessibility & contrast

On white

4.96
#31801B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#31801B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31801B
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31801B#FFFFFF#000000##FFFFFF
##31801B1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847403
Deuteranopia (green-blind)
#7A6D26
Tritanopia (blue-blind)
#277C6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #31801b;
/* rgb */ color: rgb(49, 128, 27);
/* oklch */ color: oklch(53.1% 0.154 139.9);
Tailwind
colors: {
  custom: {
    50: '#73a660',
    500: '#31801b',
    950: '#000000',
  },
}
SCSS
$custom: #31801b;
$custom-light: #73a660;
$custom-dark: #000000;
JSON
{
  "hex": "#31801b",
  "rgb": {
    "r": 49,
    "g": 128,
    "b": 27
  },
  "hsl": {
    "h": 106.931,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53061,
    "c": 0.1542,
    "h": 139.9
  },
  "luminance": 0.1617
}

Semantic roles & 50–950 ramp

primary
#31801B
secondary
#9B43B4
accent
#40E8C3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #31801B

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

Preview Lab → · Contrast checker → · Palette generator →

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