#31974F#31974F

#31974F is a mid, vivid green. Relative luminance 0.234; OKLCH L 60.0% C 0.142 H 149.5°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#31974F
RGBrgb(49, 151, 79)
HSLhsl(138, 51%, 39%)
HSVhsv(138, 68%, 59%)
CMYKcmyk(67.5%, 0%, 47.7%, 40.8%)
CIE-LABlab(55.43, -45.45, 29.51)
CIE-LCHlch(55.43, 54.19, 147.01°)
OKLaboklab(60.04% -0.1225 0.0721)
OKLCHoklch(60.04% 0.142 149.5)
XYZxyz(13.7435, 23.3492, 11.1782)
Luminance0.2335 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31974F #973179
analogous
#469731 #31974F #319782
triadic
#31974F #4F3197 #974F31
tetradic
#31974F #314697 #973179 #978231
square
#31974F #314697 #973179 #978231
split-complementary
#31974F #823197 #973146
monochromatic
#133B1F #226937 #31974F #43C268 #71D18E

Accessibility & contrast

On white

3.70
#31974F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#31974F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31974F
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31974F#FFFFFF#000000##000000
##31974F1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988A49
Deuteranopia (green-blind)
#8B8154
Tritanopia (blue-blind)
#039486
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #31974f;
/* rgb */ color: rgb(49, 151, 79);
/* oklch */ color: oklch(60.0% 0.142 149.5);
Tailwind
colors: {
  custom: {
    50: '#76b681',
    500: '#31974f',
    950: '#000000',
  },
}
SCSS
$custom: #31974f;
$custom-light: #76b681;
$custom-dark: #000000;
JSON
{
  "hex": "#31974f",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 79
  },
  "hsl": {
    "h": 137.647,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.60039,
    "c": 0.14221,
    "h": 149.5
  },
  "luminance": 0.23351
}

Semantic roles & 50–950 ramp

primary
#31974F
secondary
#B96BA2
accent
#4DB1DA
background
#F7FBF8
surface
#EEF6EF
border
#C9D0CA
text
#09110A
muted
#7B807C

Preview Lab

Preview with #31974F

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

Preview Lab → · Contrast checker → · Palette generator →

#31974F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva