#312D05#312D05

#312D05 is a dark, muted yellow. Relative luminance 0.025; OKLCH L 29.3% C 0.057 H 103.5°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#312D05
RGBrgb(49, 45, 5)
HSLhsl(55, 81%, 11%)
HSVhsv(55, 90%, 19%)
CMYKcmyk(0%, 8.2%, 89.8%, 80.8%)
CIE-LABlab(18.10, -3.80, 23.82)
CIE-LCHlch(18.10, 24.13, 99.06°)
OKLaboklab(29.27% -0.0133 0.055)
OKLCHoklch(29.27% 0.057 103.5)
XYZxyz(2.2325, 2.5408, 0.5164)
Luminance0.0254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D05 #050931
analogous
#311705 #312D05 #1F3105
triadic
#312D05 #05312D #2D0531
tetradic
#312D05 #053117 #050931 #31051F
square
#312D05 #053117 #050931 #31051F
split-complementary
#312D05 #051F31 #170531
monochromatic
#1C1903 #1C1903 #312D05 #69600B #A09310

Accessibility & contrast

On white

13.92
#312D05 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#312D05 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D05
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D05#FFFFFF#000000##FFFFFF
##312D051.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B01
Deuteranopia (green-blind)
#332D07
Tritanopia (blue-blind)
#362925
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #312d05;
/* rgb */ color: rgb(49, 45, 5);
/* oklch */ color: oklch(29.3% 0.057 103.5);
Tailwind
colors: {
  custom: {
    50: '#6b6549',
    500: '#312d05',
    950: '#000000',
  },
}
SCSS
$custom: #312d05;
$custom-light: #6b6549;
$custom-dark: #000000;
JSON
{
  "hex": "#312d05",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 5
  },
  "hsl": {
    "h": 54.545,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.29269,
    "c": 0.05661,
    "h": 103.5
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#312D05
secondary
#1F2772
accent
#42F830
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070501
muted
#7A7A77

Preview Lab

Preview with #312D05

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

Preview Lab → · Contrast checker → · Palette generator →

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