#31470F#31470F

#31470F is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.7% C 0.085 H 128.7°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#31470F
RGBrgb(49, 71, 15)
HSLhsl(84, 65%, 17%)
HSVhsv(84, 79%, 28%)
CMYKcmyk(31%, 0%, 78.9%, 72.2%)
CIE-LABlab(27.28, -18.54, 29.33)
CIE-LCHlch(27.28, 34.70, 122.30°)
OKLaboklab(36.68% -0.0529 0.066)
OKLCHoklch(36.68% 0.085 128.7)
XYZxyz(3.6061, 5.1938, 1.2644)
Luminance0.0519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31470F #250F47
analogous
#47410F #31470F #15470F
triadic
#31470F #0F3147 #470F31
tetradic
#31470F #0F4741 #250F47 #470F15
square
#31470F #0F4741 #250F47 #470F15
split-complementary
#31470F #0F1547 #410F47
monochromatic
#111905 #111905 #31470F #547A1A #77AC24

Accessibility & contrast

On white

10.30
#31470F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#31470F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31470F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31470F#FFFFFF#000000##FFFFFF
##31470F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4106
Deuteranopia (green-blind)
#484014
Tritanopia (blue-blind)
#33433C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31470f;
/* rgb */ color: rgb(49, 71, 15);
/* oklch */ color: oklch(36.7% 0.085 128.7);
Tailwind
colors: {
  custom: {
    50: '#6b7a51',
    500: '#31470f',
    950: '#000000',
  },
}
SCSS
$custom: #31470f;
$custom-light: #6b7a51;
$custom-dark: #000000;
JSON
{
  "hex": "#31470f",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 15
  },
  "hsl": {
    "h": 83.571,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.36682,
    "c": 0.08455,
    "h": 128.7
  },
  "luminance": 0.05194
}

Semantic roles & 50–950 ramp

primary
#31470F
secondary
#503081
accent
#40E882
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #31470F

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

Preview Lab → · Contrast checker → · Palette generator →

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