#312A05#312A05

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

Color values

HEX#312A05
RGBrgb(49, 42, 5)
HSLhsl(50, 81%, 11%)
HSVhsv(50, 90%, 19%)
CMYKcmyk(0%, 14.3%, 89.8%, 80.8%)
CIE-LABlab(17.08, -1.81, 22.60)
CIE-LCHlch(17.08, 22.67, 94.58°)
OKLaboklab(28.46% -0.0077 0.053)
OKLCHoklch(28.46% 0.054 98.2)
XYZxyz(2.1221, 2.3200, 0.4796)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312A05 #050C31
analogous
#311405 #312A05 #223105
triadic
#312A05 #05312A #2A0531
tetradic
#312A05 #053114 #050C31 #310522
square
#312A05 #053114 #050C31 #310522
split-complementary
#312A05 #052231 #140531
monochromatic
#1C1803 #1C1803 #312A05 #695A0B #A08910

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312A05#FFFFFF#000000##FFFFFF
##312A051.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)
#2F2901
Deuteranopia (green-blind)
#312B07
Tritanopia (blue-blind)
#362623
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #312a05;
/* rgb */ color: rgb(49, 42, 5);
/* oklch */ color: oklch(28.5% 0.054 98.2);
Tailwind
colors: {
  custom: {
    50: '#6b6349',
    500: '#312a05',
    950: '#000000',
  },
}
SCSS
$custom: #312a05;
$custom-light: #6b6349;
$custom-dark: #000000;
JSON
{
  "hex": "#312a05",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 5
  },
  "hsl": {
    "h": 50.455,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.2846,
    "c": 0.05358,
    "h": 98.2
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#312A05
secondary
#1F2D72
accent
#50F830
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312A05

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

Preview Lab → · Contrast checker → · Palette generator →

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