#312B0D#312B0D

#312B0D is a dark, muted yellow. Relative luminance 0.024; OKLCH L 28.8% C 0.047 H 98.1°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#312B0D
RGBrgb(49, 43, 13)
HSLhsl(50, 58%, 12%)
HSVhsv(50, 73%, 19%)
CMYKcmyk(0%, 12.2%, 73.5%, 80.8%)
CIE-LABlab(17.51, -1.86, 19.74)
CIE-LCHlch(17.51, 19.83, 95.38°)
OKLaboklab(28.82% -0.0065 0.0461)
OKLCHoklch(28.82% 0.047 98.1)
XYZxyz(2.2032, 2.4099, 0.7298)
Luminance0.0241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B0D #0D1331
analogous
#31190D #312B0D #25310D
triadic
#312B0D #0D312B #2B0D31
tetradic
#312B0D #0D3119 #0D1331 #310D25
square
#312B0D #0D3119 #0D1331 #310D25
split-complementary
#312B0D #0D2531 #190D31
monochromatic
#181506 #181506 #312B0D #61551A #928027

Accessibility & contrast

On white

14.17
#312B0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#312B0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312B0D
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B0D#FFFFFF#000000##FFFFFF
##312B0D1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A0A
Deuteranopia (green-blind)
#312C0E
Tritanopia (blue-blind)
#352725
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312b0d;
/* rgb */ color: rgb(49, 43, 13);
/* oklch */ color: oklch(28.8% 0.047 98.1);
Tailwind
colors: {
  custom: {
    50: '#6a644d',
    500: '#312b0d',
    950: '#000000',
  },
}
SCSS
$custom: #312b0d;
$custom-light: #6a644d;
$custom-dark: #000000;
JSON
{
  "hex": "#312b0d",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 13
  },
  "hsl": {
    "h": 50,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.28822,
    "c": 0.04655,
    "h": 98.1
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#312B0D
secondary
#2E386C
accent
#60E147
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312B0D

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

Preview Lab → · Contrast checker → · Palette generator →

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