#31470B#31470B

#31470B is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.087 H 128.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#31470B
RGBrgb(49, 71, 11)
HSLhsl(82, 73%, 16%)
HSVhsv(82, 85%, 28%)
CMYKcmyk(31%, 0%, 84.5%, 72.2%)
CIE-LABlab(27.25, -18.82, 30.97)
CIE-LCHlch(27.25, 36.24, 121.29°)
OKLaboklab(36.65% -0.054 0.0687)
OKLCHoklch(36.65% 0.087 128.2)
XYZxyz(3.5803, 5.1835, 1.1284)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31470B #210B47
analogous
#473F0B #31470B #13470B
triadic
#31470B #0B3147 #470B31
tetradic
#31470B #0B473F #210B47 #470B13
square
#31470B #0B473F #210B47 #470B13
split-complementary
#31470B #0B1347 #3F0B47
monochromatic
#121A04 #121A04 #31470B #567C13 #7AB11B

Accessibility & contrast

On white

10.31
#31470B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31470B
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31470B#FFFFFF#000000##FFFFFF
##31470B1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31470b;
/* rgb */ color: rgb(49, 71, 11);
/* oklch */ color: oklch(36.6% 0.087 128.2);
Tailwind
colors: {
  custom: {
    50: '#6c7a4f',
    500: '#31470b',
    950: '#000000',
  },
}
SCSS
$custom: #31470b;
$custom-light: #6c7a4f;
$custom-dark: #000000;
JSON
{
  "hex": "#31470b",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 11
  },
  "hsl": {
    "h": 82,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.3665,
    "c": 0.08737,
    "h": 128.2
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#31470B
secondary
#4B2A83
accent
#38F07B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #31470B

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

Preview Lab → · Contrast checker → · Palette generator →

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