#31540E#31540E

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

Color values

HEX#31540E
RGBrgb(49, 84, 14)
HSLhsl(90, 71%, 19%)
HSVhsv(90, 83%, 33%)
CMYKcmyk(41.7%, 0%, 83.3%, 67.1%)
CIE-LABlab(31.86, -25.21, 34.23)
CIE-LCHlch(31.86, 42.51, 126.38°)
OKLaboklab(40.42% -0.071 0.0761)
OKLCHoklch(40.42% 0.104 133)
XYZxyz(4.5161, 7.0251, 1.5334)
Luminance0.0703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31540E #310E54
analogous
#54540E #31540E #0E540E
triadic
#31540E #0E3154 #540E31
tetradic
#31540E #0E5454 #310E54 #540E0E
square
#31540E #0E5454 #310E54 #540E0E
split-complementary
#31540E #0E0E54 #540E54
monochromatic
#0F1A04 #122005 #31540E #508817 #6EBD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31540E#FFFFFF#000000##FFFFFF
##31540E1.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)
#584D01
Deuteranopia (green-blind)
#534A15
Tritanopia (blue-blind)
#315047
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31540e;
/* rgb */ color: rgb(49, 84, 14);
/* oklch */ color: oklch(40.4% 0.104 133.0);
Tailwind
colors: {
  custom: {
    50: '#6d8453',
    500: '#31540e',
    950: '#000000',
  },
}
SCSS
$custom: #31540e;
$custom-light: #6d8453;
$custom-dark: #000000;
JSON
{
  "hex": "#31540e",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 90,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40417,
    "c": 0.10409,
    "h": 133
  },
  "luminance": 0.07025
}

Semantic roles & 50–950 ramp

primary
#31540E
secondary
#5F2F8E
accent
#3AEE94
background
#F6F8F4
surface
#ECEFE7
border
#C7CAC3
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #31540E

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

Preview Lab → · Contrast checker → · Palette generator →

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