#31945F#31945F

#31945F is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.5% C 0.123 H 155.9°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#31945F
RGBrgb(49, 148, 95)
HSLhsl(148, 50%, 39%)
HSVhsv(148, 67%, 58%)
CMYKcmyk(66.9%, 0%, 35.8%, 42%)
CIE-LABlab(54.72, -41.26, 19.88)
CIE-LCHlch(54.72, 45.80, 154.27°)
OKLaboklab(59.54% -0.1118 0.05)
OKLCHoklch(59.54% 0.123 155.9)
XYZxyz(13.9208, 22.6575, 14.4640)
Luminance0.2266 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31945F #943166
analogous
#349431 #31945F #319490
triadic
#31945F #5F3194 #945F31
tetradic
#31945F #313494 #943166 #949031
square
#31945F #313494 #943166 #949031
split-complementary
#31945F #903194 #943134
monochromatic
#133824 #226641 #31945F #42C07D #70D09C

Accessibility & contrast

On white

3.80
#31945F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#31945F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31945F
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31945F#FFFFFF#000000##000000
##31945F1.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)
#93885C
Deuteranopia (green-blind)
#867F62
Tritanopia (blue-blind)
#009386
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #31945f;
/* rgb */ color: rgb(49, 148, 95);
/* oklch */ color: oklch(59.5% 0.123 155.9);
Tailwind
colors: {
  custom: {
    50: '#75b48c',
    500: '#31945f',
    950: '#000000',
  },
}
SCSS
$custom: #31945f;
$custom-light: #75b48c;
$custom-dark: #000000;
JSON
{
  "hex": "#31945f",
  "rgb": {
    "r": 49,
    "g": 148,
    "b": 95
  },
  "hsl": {
    "h": 147.879,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.59541,
    "c": 0.12251,
    "h": 155.9
  },
  "luminance": 0.22659
}

Semantic roles & 50–950 ramp

primary
#31945F
secondary
#B76993
accent
#4E99DA
background
#F7FBF8
surface
#EEF6F0
border
#C9D0CB
text
#09110C
muted
#7B807D

Preview Lab

Preview with #31945F

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

Preview Lab → · Contrast checker → · Palette generator →

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