#312B09#312B09

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

Color values

HEX#312B09
RGBrgb(49, 43, 9)
HSLhsl(51, 69%, 11%)
HSVhsv(51, 82%, 19%)
CMYKcmyk(0%, 12.2%, 81.6%, 80.8%)
CIE-LABlab(17.46, -2.18, 21.43)
CIE-LCHlch(17.46, 21.54, 95.80°)
OKLaboklab(28.77% -0.008 0.0499)
OKLCHoklch(28.77% 0.051 99.1)
XYZxyz(2.1799, 2.4005, 0.6069)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B09 #090F31
analogous
#311709 #312B09 #233109
triadic
#312B09 #09312B #2B0931
tetradic
#312B09 #093117 #090F31 #310923
square
#312B09 #093117 #090F31 #310923
split-complementary
#312B09 #092331 #170931
monochromatic
#1A1705 #1A1705 #312B09 #655812 #98861C

Accessibility & contrast

On white

14.19
#312B09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312B09
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B09#FFFFFF#000000##FFFFFF
##312B091.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A05
Deuteranopia (green-blind)
#322C0B
Tritanopia (blue-blind)
#352724
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312b09;
/* rgb */ color: rgb(49, 43, 9);
/* oklch */ color: oklch(28.8% 0.051 99.1);
Tailwind
colors: {
  custom: {
    50: '#6b644b',
    500: '#312b09',
    950: '#000000',
  },
}
SCSS
$custom: #312b09;
$custom-light: #6b644b;
$custom-dark: #000000;
JSON
{
  "hex": "#312b09",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 9
  },
  "hsl": {
    "h": 51,
    "s": 68.966,
    "l": 11.373
  },
  "oklch": {
    "l": 0.28774,
    "c": 0.05055,
    "h": 99.1
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#312B09
secondary
#27326F
accent
#56EC3C
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312B09

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

Preview Lab → · Contrast checker → · Palette generator →

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