#312F0A#312F0A

#312F0A is a dark, muted yellow. Relative luminance 0.027; OKLCH L 29.9% C 0.054 H 106.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#312F0A
RGBrgb(49, 47, 10)
HSLhsl(57, 66%, 12%)
HSVhsv(57, 80%, 19%)
CMYKcmyk(0%, 4.1%, 79.6%, 80.8%)
CIE-LABlab(18.83, -4.73, 22.65)
CIE-LCHlch(18.83, 23.14, 101.80°)
OKLaboklab(29.87% -0.0151 0.052)
OKLCHoklch(29.87% 0.054 106.2)
XYZxyz(2.3380, 2.7080, 0.6866)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F0A #0A0C31
analogous
#311C0A #312F0A #20310A
triadic
#312F0A #0A312F #2F0A31
tetradic
#312F0A #0A311C #0A0C31 #310A20
square
#312F0A #0A311C #0A0C31 #310A20
split-complementary
#312F0A #0A2031 #1C0A31
monochromatic
#191805 #191805 #312F0A #646014 #97911F

Accessibility & contrast

On white

13.62
#312F0A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#312F0A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F0A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F0A#FFFFFF#000000##FFFFFF
##312F0A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D06
Deuteranopia (green-blind)
#352E0C
Tritanopia (blue-blind)
#352B27
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #312f0a;
/* rgb */ color: rgb(49, 47, 10);
/* oklch */ color: oklch(29.9% 0.054 106.2);
Tailwind
colors: {
  custom: {
    50: '#6b674c',
    500: '#312f0a',
    950: '#000000',
  },
}
SCSS
$custom: #312f0a;
$custom-light: #6b674c;
$custom-dark: #000000;
JSON
{
  "hex": "#312f0a",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 10
  },
  "hsl": {
    "h": 56.923,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.29867,
    "c": 0.05414,
    "h": 106.2
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#312F0A
secondary
#292C6E
accent
#47E93F
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #312F0A

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

Preview Lab → · Contrast checker → · Palette generator →

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