#31580D#31580D

#31580D is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.6% C 0.110 H 133.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#31580D
RGBrgb(49, 88, 13)
HSLhsl(91, 74%, 20%)
HSVhsv(91, 85%, 35%)
CMYKcmyk(44.3%, 0%, 85.2%, 65.5%)
CIE-LABlab(33.27, -27.17, 35.91)
CIE-LCHlch(33.27, 45.03, 127.12°)
OKLaboklab(41.56% -0.0764 0.0794)
OKLCHoklch(41.56% 0.11 133.9)
XYZxyz(4.8289, 7.6612, 1.6050)
Luminance0.0766 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31580D #340D58
analogous
#57580D #31580D #0D580F
triadic
#31580D #0D3158 #580D31
tetradic
#31580D #0D5758 #340D58 #580F0D
square
#31580D #0D5758 #340D58 #580F0D
split-complementary
#31580D #0F0D58 #580D57
monochromatic
#0F1B04 #132305 #31580D #4F8D15 #6CC31D

Accessibility & contrast

On white

8.29
#31580D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#31580D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31580D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31580D#FFFFFF#000000##FFFFFF
##31580D1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5000
Deuteranopia (green-blind)
#574D15
Tritanopia (blue-blind)
#31544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31580d;
/* rgb */ color: rgb(49, 88, 13);
/* oklch */ color: oklch(41.6% 0.110 133.9);
Tailwind
colors: {
  custom: {
    50: '#6d8753',
    500: '#31580d',
    950: '#000000',
  },
}
SCSS
$custom: #31580d;
$custom-light: #6d8753;
$custom-dark: #000000;
JSON
{
  "hex": "#31580d",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 13
  },
  "hsl": {
    "h": 91.2,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.41564,
    "c": 0.1102,
    "h": 133.9
  },
  "luminance": 0.07661
}

Semantic roles & 50–950 ramp

primary
#31580D
secondary
#622E93
accent
#37F198
background
#F6F8F4
surface
#ECEFE8
border
#C7CAC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #31580D

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

Preview Lab → · Contrast checker → · Palette generator →

#31580D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva