#31951C#31951C

#31951C is a mid, vivid green. Relative luminance 0.222; OKLCH L 58.9% C 0.178 H 140.8°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#31951C
RGBrgb(49, 149, 28)
HSLhsl(110, 68%, 35%)
HSVhsv(110, 81%, 58%)
CMYKcmyk(67.1%, 0%, 81.2%, 41.6%)
CIE-LABlab(54.27, -50.51, 50.77)
CIE-LCHlch(54.27, 71.62, 134.85°)
OKLaboklab(58.92% -0.1383 0.1129)
OKLCHoklch(58.92% 0.178 140.8)
XYZxyz(12.2231, 22.2305, 4.7451)
Luminance0.2223 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31951C #801C95
analogous
#6E951C #31951C #1C9544
triadic
#31951C #1C3195 #951C31
tetradic
#31951C #1C6E95 #801C95 #95441C
square
#31951C #1C6E95 #801C95 #95441C
split-complementary
#31951C #441C95 #951C6E
monochromatic
#0F2E09 #206112 #31951C #42C926 #67DE4E

Accessibility & contrast

On white

3.86
#31951C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#31951C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31951C
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31951C#FFFFFF#000000##000000
##31951C1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#8D7F2B
Tritanopia (blue-blind)
#1F907F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #31951c;
/* rgb */ color: rgb(49, 149, 28);
/* oklch */ color: oklch(58.9% 0.178 140.8);
Tailwind
colors: {
  custom: {
    50: '#78b563',
    500: '#31951c',
    950: '#000000',
  },
}
SCSS
$custom: #31951c;
$custom-light: #78b563;
$custom-dark: #000000;
JSON
{
  "hex": "#31951c",
  "rgb": {
    "r": 49,
    "g": 149,
    "b": 28
  },
  "hsl": {
    "h": 109.587,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.5892,
    "c": 0.17848,
    "h": 140.8
  },
  "luminance": 0.22232
}

Semantic roles & 50–950 ramp

primary
#31951C
secondary
#AC4DC0
accent
#3DEBCD
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #31951C

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

Preview Lab → · Contrast checker → · Palette generator →

#31951C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva