#312D0C#312D0C

#312D0C is a dark, muted yellow. Relative luminance 0.026; OKLCH L 29.3% C 0.050 H 102.4°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#312D0C
RGBrgb(49, 45, 12)
HSLhsl(54, 61%, 12%)
HSVhsv(54, 76%, 19%)
CMYKcmyk(0%, 8.2%, 75.5%, 80.8%)
CIE-LABlab(18.17, -3.27, 21.01)
CIE-LCHlch(18.17, 21.26, 98.85°)
OKLaboklab(29.35% -0.0107 0.0487)
OKLCHoklch(29.35% 0.05 102.4)
XYZxyz(2.2715, 2.5564, 0.7215)
Luminance0.0256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D0C #0C1031
analogous
#311B0C #312D0C #23310C
triadic
#312D0C #0C312D #2D0C31
tetradic
#312D0C #0C311B #0C1031 #310C23
square
#312D0C #0C311B #0C1031 #310C23
split-complementary
#312D0C #0C2331 #1B0C31
monochromatic
#191706 #191706 #312D0C #625A18 #938724

Accessibility & contrast

On white

13.90
#312D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#312D0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D0C
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D0C#FFFFFF#000000##FFFFFF
##312D0C1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B08
Deuteranopia (green-blind)
#332D0E
Tritanopia (blue-blind)
#352926
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #312d0c;
/* rgb */ color: rgb(49, 45, 12);
/* oklch */ color: oklch(29.3% 0.050 102.4);
Tailwind
colors: {
  custom: {
    50: '#6a654d',
    500: '#312d0c',
    950: '#000000',
  },
}
SCSS
$custom: #312d0c;
$custom-light: #6a654d;
$custom-dark: #000000;
JSON
{
  "hex": "#312d0c",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 12
  },
  "hsl": {
    "h": 53.514,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.29346,
    "c": 0.04981,
    "h": 102.4
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#312D0C
secondary
#2C336D
accent
#55E444
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070501
muted
#7A7A77

Preview Lab

Preview with #312D0C

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

Preview Lab → · Contrast checker → · Palette generator →

#312D0C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva