#312A06#312A06

#312A06 is a dark, muted yellow. Relative luminance 0.023; OKLCH L 28.5% C 0.053 H 97.9°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#312A06
RGBrgb(49, 42, 6)
HSLhsl(50, 78%, 11%)
HSVhsv(50, 88%, 19%)
CMYKcmyk(0%, 14.3%, 87.8%, 80.8%)
CIE-LABlab(17.09, -1.74, 22.20)
CIE-LCHlch(17.09, 22.27, 94.47°)
OKLaboklab(28.47% -0.0073 0.052)
OKLCHoklch(28.47% 0.053 97.9)
XYZxyz(2.1276, 2.3222, 0.5084)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312A06 #060D31
analogous
#311406 #312A06 #223106
triadic
#312A06 #06312A #2A0631
tetradic
#312A06 #063114 #060D31 #310622
square
#312A06 #063114 #060D31 #310622
split-complementary
#312A06 #062231 #140631
monochromatic
#1B1703 #1B1703 #312A06 #68590D #9E8713

Accessibility & contrast

On white

14.34
#312A06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#312A06 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312A06
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312A06#FFFFFF#000000##FFFFFF
##312A061.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2902
Deuteranopia (green-blind)
#312B08
Tritanopia (blue-blind)
#362623
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #312a06;
/* rgb */ color: rgb(49, 42, 6);
/* oklch */ color: oklch(28.5% 0.053 97.9);
Tailwind
colors: {
  custom: {
    50: '#6b634a',
    500: '#312a06',
    950: '#000000',
  },
}
SCSS
$custom: #312a06;
$custom-light: #6b634a;
$custom-dark: #000000;
JSON
{
  "hex": "#312a06",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 6
  },
  "hsl": {
    "h": 50.233,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.28472,
    "c": 0.05254,
    "h": 97.9
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#312A06
secondary
#212E72
accent
#53F533
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312A06

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

Preview Lab → · Contrast checker → · Palette generator →

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