#312D0F#312D0F

#312D0F is a dark, muted yellow. Relative luminance 0.026; OKLCH L 29.4% C 0.047 H 101.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#312D0F
RGBrgb(49, 45, 15)
HSLhsl(53, 53%, 13%)
HSVhsv(53, 69%, 19%)
CMYKcmyk(0%, 8.2%, 69.4%, 80.8%)
CIE-LABlab(18.21, -3.00, 19.58)
CIE-LCHlch(18.21, 19.80, 98.73°)
OKLaboklab(29.39% -0.0095 0.0456)
OKLCHoklch(29.39% 0.047 101.8)
XYZxyz(2.2913, 2.5643, 0.8261)
Luminance0.0256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D0F #0F1331
analogous
#311C0F #312D0F #24310F
triadic
#312D0F #0F312D #2D0F31
tetradic
#312D0F #0F311C #0F1331 #310F24
square
#312D0F #0F311C #0F1331 #310F24
split-complementary
#312D0F #0F2431 #1C0F31
monochromatic
#171607 #171607 #312D0F #60581D #8F832C

Accessibility & contrast

On white

13.88
#312D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312D0F
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D0F#FFFFFF#000000##FFFFFF
##312D0F1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B0C
Deuteranopia (green-blind)
#332D11
Tritanopia (blue-blind)
#352A26
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #312d0f;
/* rgb */ color: rgb(49, 45, 15);
/* oklch */ color: oklch(29.4% 0.047 101.8);
Tailwind
colors: {
  custom: {
    50: '#6a654e',
    500: '#312d0f',
    950: '#000000',
  },
}
SCSS
$custom: #312d0f;
$custom-light: #6a654e;
$custom-dark: #000000;
JSON
{
  "hex": "#312d0f",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 15
  },
  "hsl": {
    "h": 52.941,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.29386,
    "c": 0.04658,
    "h": 101.8
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#312D0F
secondary
#31386B
accent
#5CDD4B
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060501
muted
#7A7A77

Preview Lab

Preview with #312D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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