#31540F#31540F

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

Color values

HEX#31540F
RGBrgb(49, 84, 15)
HSLhsl(90, 70%, 19%)
HSVhsv(90, 82%, 33%)
CMYKcmyk(41.7%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.87, -25.15, 33.86)
CIE-LCHlch(31.87, 42.17, 126.60°)
OKLaboklab(40.42% -0.0708 0.0755)
OKLCHoklch(40.42% 0.103 133.2)
XYZxyz(4.5231, 7.0279, 1.5700)
Luminance0.0703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31540F #320F54
analogous
#54540F #31540F #0F5410
triadic
#31540F #0F3154 #540F31
tetradic
#31540F #0F5454 #320F54 #54100F
square
#31540F #0F5454 #320F54 #54100F
split-complementary
#31540F #100F54 #540F54
monochromatic
#0F1A05 #132006 #31540F #4F8818 #6EBC22

Accessibility & contrast

On white

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

On black

2.41
#31540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##31540F#FFFFFF#000000##FFFFFF
##31540F1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31540f;
/* rgb */ color: rgb(49, 84, 15);
/* oklch */ color: oklch(40.4% 0.103 133.2);
Tailwind
colors: {
  custom: {
    50: '#6d8453',
    500: '#31540f',
    950: '#000000',
  },
}
SCSS
$custom: #31540f;
$custom-light: #6d8453;
$custom-dark: #000000;
JSON
{
  "hex": "#31540f",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 90.435,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40425,
    "c": 0.10347,
    "h": 133.2
  },
  "luminance": 0.07028
}

Semantic roles & 50–950 ramp

primary
#31540F
secondary
#60318E
accent
#3BED95
background
#F6F8F4
surface
#ECEFE8
border
#C7CAC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #31540F

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

Preview Lab → · Contrast checker → · Palette generator →

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