#31500D#31500D

#31500D is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.099 H 131.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#31500D
RGBrgb(49, 80, 13)
HSLhsl(88, 72%, 18%)
HSVhsv(88, 84%, 31%)
CMYKcmyk(38.8%, 0%, 83.7%, 68.6%)
CIE-LABlab(30.45, -23.32, 33.25)
CIE-LCHlch(30.45, 40.61, 125.05°)
OKLaboklab(39.26% -0.066 0.0739)
OKLCHoklch(39.26% 0.099 131.8)
XYZxyz(4.2079, 6.4192, 1.3980)
Luminance0.0642 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31500D #2C0D50
analogous
#504D0D #31500D #0F500D
triadic
#31500D #0D3150 #500D31
tetradic
#31500D #0D504D #2C0D50 #500D0F
square
#31500D #0D504D #2C0D50 #500D0F
split-complementary
#31500D #0D0F50 #4D0D50
monochromatic
#101A04 #111B04 #31500D #518516 #71B91E

Accessibility & contrast

On white

9.20
#31500D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#31500D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31500D
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31500D#FFFFFF#000000##FFFFFF
##31500D1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544901
Deuteranopia (green-blind)
#504714
Tritanopia (blue-blind)
#324C43
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31500d;
/* rgb */ color: rgb(49, 80, 13);
/* oklch */ color: oklch(39.3% 0.099 131.8);
Tailwind
colors: {
  custom: {
    50: '#6c8152',
    500: '#31500d',
    950: '#000000',
  },
}
SCSS
$custom: #31500d;
$custom-light: #6c8152;
$custom-dark: #000000;
JSON
{
  "hex": "#31500d",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 13
  },
  "hsl": {
    "h": 87.761,
    "s": 72.043,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39257,
    "c": 0.09905,
    "h": 131.8
  },
  "luminance": 0.06419
}

Semantic roles & 50–950 ramp

primary
#31500D
secondary
#592E8B
accent
#39EF8D
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #31500D

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

Preview Lab → · Contrast checker → · Palette generator →

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