#31350F#31350F

#31350F is a dark, muted yellow. Relative luminance 0.032; OKLCH L 31.6% C 0.057 H 114.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#31350F
RGBrgb(49, 53, 15)
HSLhsl(66, 56%, 13%)
HSVhsv(66, 72%, 21%)
CMYKcmyk(7.5%, 0%, 71.7%, 79.2%)
CIE-LABlab(20.96, -8.14, 22.72)
CIE-LCHlch(20.96, 24.13, 109.71°)
OKLaboklab(31.58% -0.0241 0.0521)
OKLCHoklch(31.58% 0.057 114.8)
XYZxyz(2.6260, 3.2337, 0.9377)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31350F #130F35
analogous
#35260F #31350F #1E350F
triadic
#31350F #0F3135 #350F31
tetradic
#31350F #0F3526 #130F35 #350F1E
square
#31350F #0F3526 #130F35 #350F1E
split-complementary
#31350F #0F1E35 #260F35
monochromatic
#161807 #161807 #31350F #5D651C #89942A

Accessibility & contrast

On white

12.75
#31350F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#31350F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31350F
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31350F#FFFFFF#000000##FFFFFF
##31350F1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39320B
Deuteranopia (green-blind)
#393311
Tritanopia (blue-blind)
#35322D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #31350f;
/* rgb */ color: rgb(49, 53, 15);
/* oklch */ color: oklch(31.6% 0.057 114.8);
Tailwind
colors: {
  custom: {
    50: '#6a6c4f',
    500: '#31350f',
    950: '#000000',
  },
}
SCSS
$custom: #31350f;
$custom-light: #6a6c4f;
$custom-dark: #000000;
JSON
{
  "hex": "#31350f",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 15
  },
  "hsl": {
    "h": 66.316,
    "s": 55.882,
    "l": 13.333
  },
  "oklch": {
    "l": 0.31578,
    "c": 0.05737,
    "h": 114.8
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#31350F
secondary
#37316F
accent
#49DF58
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070602
muted
#7A7A78

Preview Lab

Preview with #31350F

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

Preview Lab → · Contrast checker → · Palette generator →

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