#31301A#31301A

#31301A is a dark, muted yellow. Relative luminance 0.028; OKLCH L 30.4% C 0.036 H 106.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#31301A
RGBrgb(49, 48, 26)
HSLhsl(57, 31%, 15%)
HSVhsv(57, 47%, 19%)
CMYKcmyk(0%, 2%, 46.9%, 80.8%)
CIE-LABlab(19.40, -3.68, 14.25)
CIE-LCHlch(19.40, 14.72, 104.47°)
OKLaboklab(30.39% -0.01 0.0348)
OKLCHoklch(30.39% 0.036 106.1)
XYZxyz(2.5101, 2.8415, 1.3933)
Luminance0.0284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31301A #1A1B31
analogous
#31251A #31301A #27311A
triadic
#31301A #1A3130 #301A31
tetradic
#31301A #1A3125 #1A1B31 #311A27
square
#31301A #1A3125 #1A1B31 #311A27
split-complementary
#31301A #1A2731 #251A31
monochromatic
#14140B #14140B #31301A #59572F #817E44

Accessibility & contrast

On white

13.39
#31301A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31301A
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31301A#FFFFFF#000000##FFFFFF
##31301A1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332E18
Deuteranopia (green-blind)
#342F1B
Tritanopia (blue-blind)
#342D2B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #31301a;
/* rgb */ color: rgb(49, 48, 26);
/* oklch */ color: oklch(30.4% 0.036 106.1);
Tailwind
colors: {
  custom: {
    50: '#696856',
    500: '#31301a',
    950: '#000000',
  },
}
SCSS
$custom: #31301a;
$custom-light: #696856;
$custom-dark: #000000;
JSON
{
  "hex": "#31301a",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 26
  },
  "hsl": {
    "h": 57.391,
    "s": 30.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.30387,
    "c": 0.03619,
    "h": 106.1
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#31301A
secondary
#414365
accent
#65C761
background
#F6F6F5
surface
#EBEBE9
border
#C6C6C5
text
#060603
muted
#7A7A78

Preview Lab

Preview with #31301A

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

Preview Lab → · Contrast checker → · Palette generator →

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