#31702B#31702B

#31702B is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.7% C 0.121 H 141.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#31702B
RGBrgb(49, 112, 43)
HSLhsl(115, 45%, 30%)
HSVhsv(115, 62%, 44%)
CMYKcmyk(56.3%, 0%, 61.6%, 56.1%)
CIE-LABlab(41.87, -35.01, 31.74)
CIE-LCHlch(41.87, 47.25, 137.81°)
OKLaboklab(48.71% -0.0955 0.0748)
OKLCHoklch(48.71% 0.121 141.9)
XYZxyz(7.4965, 12.4151, 4.2864)
Luminance0.1242 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31702B #6A2B70
analogous
#53702B #31702B #2B7048
triadic
#31702B #2B3170 #702B31
tetradic
#31702B #2B5370 #6A2B70 #70482B
square
#31702B #2B5370 #6A2B70 #70482B
split-complementary
#31702B #482B70 #702B53
monochromatic
#0A1809 #1E441A #31702B #449C3C #60BE57

Accessibility & contrast

On white

6.03
#31702B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#31702B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31702B
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31702B#FFFFFF#000000##FFFFFF
##31702B1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736624
Deuteranopia (green-blind)
#6A6130
Tritanopia (blue-blind)
#296D61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #31702b;
/* rgb */ color: rgb(49, 112, 43);
/* oklch */ color: oklch(48.7% 0.121 141.9);
Tailwind
colors: {
  custom: {
    50: '#709a67',
    500: '#31702b',
    950: '#000000',
  },
}
SCSS
$custom: #31702b;
$custom-light: #709a67;
$custom-dark: #000000;
JSON
{
  "hex": "#31702b",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 43
  },
  "hsl": {
    "h": 114.783,
    "s": 44.516,
    "l": 30.392
  },
  "oklch": {
    "l": 0.48711,
    "c": 0.12125,
    "h": 141.9
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

primary
#31702B
secondary
#9B55A2
accent
#54D4C9
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #31702B

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

Preview Lab → · Contrast checker → · Palette generator →

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