#31954A#31954A

#31954A is a mid, vivid green. Relative luminance 0.226; OKLCH L 59.4% C 0.144 H 148.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#31954A
RGBrgb(49, 149, 74)
HSLhsl(135, 51%, 39%)
HSVhsv(135, 67%, 58%)
CMYKcmyk(67.1%, 0%, 50.3%, 41.6%)
CIE-LABlab(54.70, -45.49, 31.22)
CIE-LCHlch(54.70, 55.17, 145.54°)
OKLaboklab(59.41% -0.1227 0.0758)
OKLCHoklch(59.41% 0.144 148.3)
XYZxyz(13.2491, 22.6409, 10.1491)
Luminance0.2264 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31954A #95317C
analogous
#4A9531 #31954A #31957C
triadic
#31954A #4A3195 #954A31
tetradic
#31954A #314A95 #95317C #957C31
square
#31954A #314A95 #95317C #957C31
split-complementary
#31954A #7C3195 #95314A
monochromatic
#13391C #226733 #31954A #42C162 #70D088

Accessibility & contrast

On white

3.80
#31954A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#31954A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31954A
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31954A#FFFFFF#000000##000000
##31954A1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968844
Deuteranopia (green-blind)
#8A7F4F
Tritanopia (blue-blind)
#0B9283
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #31954a;
/* rgb */ color: rgb(49, 149, 74);
/* oklch */ color: oklch(59.4% 0.144 148.3);
Tailwind
colors: {
  custom: {
    50: '#76b57e',
    500: '#31954a',
    950: '#000000',
  },
}
SCSS
$custom: #31954a;
$custom-light: #76b57e;
$custom-dark: #000000;
JSON
{
  "hex": "#31954a",
  "rgb": {
    "r": 49,
    "g": 149,
    "b": 74
  },
  "hsl": {
    "h": 135,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.59414,
    "c": 0.14421,
    "h": 148.3
  },
  "luminance": 0.22642
}

Semantic roles & 50–950 ramp

primary
#31954A
secondary
#B86AA4
accent
#4EB7DA
background
#F7FBF7
surface
#EEF6EE
border
#C9D0C9
text
#09110A
muted
#7B807C

Preview Lab

Preview with #31954A

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

Preview Lab → · Contrast checker → · Palette generator →

#31954A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva