#312A09#312A09

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

Color values

HEX#312A09
RGBrgb(49, 42, 9)
HSLhsl(50, 69%, 11%)
HSVhsv(50, 82%, 19%)
CMYKcmyk(0%, 14.3%, 81.6%, 80.8%)
CIE-LABlab(17.13, -1.51, 21.02)
CIE-LCHlch(17.13, 21.07, 94.10°)
OKLaboklab(28.51% -0.0061 0.0492)
OKLCHoklch(28.51% 0.05 97.1)
XYZxyz(2.1440, 2.3287, 0.5949)
Luminance0.0233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312A09 #091031
analogous
#311609 #312A09 #243109
triadic
#312A09 #09312A #2A0931
tetradic
#312A09 #093116 #091031 #310924
square
#312A09 #093116 #091031 #310924
split-complementary
#312A09 #092431 #160931
monochromatic
#1A1605 #1A1605 #312A09 #655612 #98831C

Accessibility & contrast

On white

14.33
#312A09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312A09
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312A09#FFFFFF#000000##FFFFFF
##312A091.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312a09;
/* rgb */ color: rgb(49, 42, 9);
/* oklch */ color: oklch(28.5% 0.050 97.1);
Tailwind
colors: {
  custom: {
    50: '#6b634b',
    500: '#312a09',
    950: '#000000',
  },
}
SCSS
$custom: #312a09;
$custom-light: #6b634b;
$custom-dark: #000000;
JSON
{
  "hex": "#312a09",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 9
  },
  "hsl": {
    "h": 49.5,
    "s": 68.966,
    "l": 11.373
  },
  "oklch": {
    "l": 0.28507,
    "c": 0.04956,
    "h": 97.1
  },
  "luminance": 0.02329
}

Semantic roles & 50–950 ramp

primary
#312A09
secondary
#27336F
accent
#5BEC3C
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312A09

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

Preview Lab → · Contrast checker → · Palette generator →

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