#31480F#31480F

#31480F is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 37.0% C 0.086 H 129.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#31480F
RGBrgb(49, 72, 15)
HSLhsl(84, 66%, 17%)
HSVhsv(84, 79%, 28%)
CMYKcmyk(31.9%, 0%, 79.2%, 71.8%)
CIE-LABlab(27.63, -19.07, 29.69)
CIE-LCHlch(27.63, 35.29, 122.72°)
OKLaboklab(36.97% -0.0543 0.0667)
OKLCHoklch(36.97% 0.086 129.1)
XYZxyz(3.6702, 5.3221, 1.2857)
Luminance0.0532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31480F #260F48
analogous
#48430F #31480F #14480F
triadic
#31480F #0F3148 #480F31
tetradic
#31480F #0F4843 #260F48 #480F14
square
#31480F #0F4843 #260F48 #480F14
split-complementary
#31480F #0F1448 #430F48
monochromatic
#111905 #111905 #31480F #537B1A #76AD24

Accessibility & contrast

On white

10.17
#31480F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#31480F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31480F
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31480F#FFFFFF#000000##FFFFFF
##31480F1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4206
Deuteranopia (green-blind)
#494114
Tritanopia (blue-blind)
#33443D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31480f;
/* rgb */ color: rgb(49, 72, 15);
/* oklch */ color: oklch(37.0% 0.086 129.1);
Tailwind
colors: {
  custom: {
    50: '#6c7b51',
    500: '#31480f',
    950: '#000000',
  },
}
SCSS
$custom: #31480f;
$custom-light: #6c7b51;
$custom-dark: #000000;
JSON
{
  "hex": "#31480f",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 15
  },
  "hsl": {
    "h": 84.211,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.36969,
    "c": 0.08605,
    "h": 129.1
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#31480F
secondary
#513082
accent
#3FE884
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #31480F

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

Preview Lab → · Contrast checker → · Palette generator →

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