#31540D#31540D

#31540D is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.4% C 0.105 H 132.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#31540D
RGBrgb(49, 84, 13)
HSLhsl(90, 73%, 19%)
HSVhsv(90, 85%, 33%)
CMYKcmyk(41.7%, 0%, 84.5%, 67.1%)
CIE-LABlab(31.86, -25.28, 34.58)
CIE-LCHlch(31.86, 42.84, 126.16°)
OKLaboklab(40.41% -0.0713 0.0767)
OKLCHoklch(40.41% 0.105 132.9)
XYZxyz(4.5095, 7.0225, 1.4986)
Luminance0.0702 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31540D #300D54
analogous
#54540D #31540D #0E540D
triadic
#31540D #0D3154 #540D31
tetradic
#31540D #0D5454 #300D54 #540D0E
square
#31540D #0D5454 #300D54 #540D0E
split-complementary
#31540D #0D0E54 #540D54
monochromatic
#0F1A04 #121F05 #31540D #508915 #6FBE1D

Accessibility & contrast

On white

8.73
#31540D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#31540D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31540D
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31540D#FFFFFF#000000##FFFFFF
##31540D1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D00
Deuteranopia (green-blind)
#534A15
Tritanopia (blue-blind)
#315047
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31540d;
/* rgb */ color: rgb(49, 84, 13);
/* oklch */ color: oklch(40.4% 0.105 132.9);
Tailwind
colors: {
  custom: {
    50: '#6d8452',
    500: '#31540d',
    950: '#000000',
  },
}
SCSS
$custom: #31540d;
$custom-light: #6d8452;
$custom-dark: #000000;
JSON
{
  "hex": "#31540d",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 89.577,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.40411,
    "c": 0.10468,
    "h": 132.9
  },
  "luminance": 0.07023
}

Semantic roles & 50–950 ramp

primary
#31540D
secondary
#5E2E8F
accent
#38F093
background
#F6F8F4
surface
#ECEFE7
border
#C7CAC3
text
#070B02
muted
#7A7C78

Preview Lab

Preview with #31540D

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

Preview Lab → · Contrast checker → · Palette generator →

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