#312A0D#312A0D

#312A0D is a dark, muted yellow. Relative luminance 0.023; OKLCH L 28.6% C 0.046 H 95.8°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#312A0D
RGBrgb(49, 42, 13)
HSLhsl(48, 58%, 12%)
HSVhsv(48, 73%, 19%)
CMYKcmyk(0%, 14.3%, 73.5%, 80.8%)
CIE-LABlab(17.17, -1.19, 19.34)
CIE-LCHlch(17.17, 19.37, 93.52°)
OKLaboklab(28.56% -0.0046 0.0453)
OKLCHoklch(28.56% 0.046 95.8)
XYZxyz(2.1673, 2.3381, 0.7178)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312A0D #0D1431
analogous
#31180D #312A0D #26310D
triadic
#312A0D #0D312A #2A0D31
tetradic
#312A0D #0D3118 #0D1431 #310D26
square
#312A0D #0D3118 #0D1431 #310D26
split-complementary
#312A0D #0D2631 #180D31
monochromatic
#181506 #181506 #312A0D #61531A #927D27

Accessibility & contrast

On white

14.31
#312A0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#312A0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312A0D
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312A0D#FFFFFF#000000##FFFFFF
##312A0D1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F290A
Deuteranopia (green-blind)
#312B0E
Tritanopia (blue-blind)
#352624
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #312a0d;
/* rgb */ color: rgb(49, 42, 13);
/* oklch */ color: oklch(28.6% 0.046 95.8);
Tailwind
colors: {
  custom: {
    50: '#6a634d',
    500: '#312a0d',
    950: '#000000',
  },
}
SCSS
$custom: #312a0d;
$custom-light: #6a634d;
$custom-dark: #000000;
JSON
{
  "hex": "#312a0d",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 13
  },
  "hsl": {
    "h": 48.333,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.28556,
    "c": 0.04552,
    "h": 95.8
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

primary
#312A0D
secondary
#2E3A6C
accent
#65E147
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312A0D

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

Preview Lab → · Contrast checker → · Palette generator →

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