#31B340#31B340

#31B340 is a light, vivid green. Relative luminance 0.333; OKLCH L 67.4% C 0.191 H 144.7°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#31B340
RGBrgb(49, 179, 64)
HSLhsl(127, 57%, 45%)
HSVhsv(127, 73%, 70%)
CMYKcmyk(72.6%, 0%, 64.2%, 29.8%)
CIE-LABlab(64.37, -57.66, 47.43)
CIE-LCHlch(64.37, 74.66, 140.56°)
OKLaboklab(67.38% -0.1558 0.1104)
OKLCHoklch(67.38% 0.191 144.7)
XYZxyz(18.3109, 33.2613, 10.3045)
Luminance0.3326 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B340 #B331A4
analogous
#63B331 #31B340 #31B381
triadic
#31B340 #4031B3 #B34031
tetradic
#31B340 #3163B3 #B331A4 #B38131
square
#31B340 #3163B3 #B331A4 #B38131
split-complementary
#31B340 #8131B3 #B33163
monochromatic
#17531E #24832F #31B340 #52D060 #82DD8C

Accessibility & contrast

On white

2.74
#31B340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#31B340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B340
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B340#FFFFFF#000000##000000
##31B3401.002.747.657.65
#FFFFFF2.741.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A232
Deuteranopia (green-blind)
#A7984A
Tritanopia (blue-blind)
#00AE9B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31b340;
/* rgb */ color: rgb(49, 179, 64);
/* oklch */ color: oklch(67.4% 0.191 144.7);
Tailwind
colors: {
  custom: {
    50: '#7dcb79',
    500: '#31b340',
    950: '#000000',
  },
}
SCSS
$custom: #31b340;
$custom-light: #7dcb79;
$custom-dark: #000000;
JSON
{
  "hex": "#31b340",
  "rgb": {
    "r": 49,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 126.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.67378,
    "c": 0.19097,
    "h": 144.7
  },
  "luminance": 0.33263
}

Semantic roles & 50–950 ramp

primary
#31B340
secondary
#C67ABD
accent
#48CFE0
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B340

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

Preview Lab → · Contrast checker → · Palette generator →

#31B340 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva