#31301F#31301F

#31301F is a dark, muted yellow. Relative luminance 0.029; OKLCH L 30.5% C 0.029 H 105.1°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#31301F
RGBrgb(49, 48, 31)
HSLhsl(57, 23%, 16%)
HSVhsv(57, 37%, 19%)
CMYKcmyk(0%, 2%, 36.7%, 80.8%)
CIE-LABlab(19.50, -2.92, 11.08)
CIE-LCHlch(19.50, 11.46, 104.77°)
OKLaboklab(30.5% -0.0075 0.0277)
OKLCHoklch(30.5% 0.029 105.1)
XYZxyz(2.5709, 2.8659, 1.7138)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31301F #1F2031
analogous
#31271F #31301F #29311F
triadic
#31301F #1F3130 #301F31
tetradic
#31301F #1F3127 #1F2031 #311F29
square
#31301F #1F3127 #1F2031 #311F29
split-complementary
#31301F #1F2931 #271F31
monochromatic
#13120C #13120C #31301F #565537 #7C794E

Accessibility & contrast

On white

13.35
#31301F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#31301F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31301F
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31301F#FFFFFF#000000##FFFFFF
##31301F1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332F1E
Deuteranopia (green-blind)
#333020
Tritanopia (blue-blind)
#342E2C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #31301f;
/* rgb */ color: rgb(49, 48, 31);
/* oklch */ color: oklch(30.5% 0.029 105.1);
Tailwind
colors: {
  custom: {
    50: '#69685a',
    500: '#31301f',
    950: '#000000',
  },
}
SCSS
$custom: #31301f;
$custom-light: #69685a;
$custom-dark: #000000;
JSON
{
  "hex": "#31301f",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 31
  },
  "hsl": {
    "h": 56.667,
    "s": 22.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.30499,
    "c": 0.02865,
    "h": 105.1
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#31301F
secondary
#484A63
accent
#6EBF69
background
#F6F6F5
surface
#EBEBE9
border
#C6C6C5
text
#060604
muted
#7A7A79

Preview Lab

Preview with #31301F

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

Preview Lab → · Contrast checker → · Palette generator →

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