#312D08#312D08

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

Color values

HEX#312D08
RGBrgb(49, 45, 8)
HSLhsl(54, 72%, 11%)
HSVhsv(54, 84%, 19%)
CMYKcmyk(0%, 8.2%, 83.7%, 80.8%)
CIE-LABlab(18.13, -3.58, 22.64)
CIE-LCHlch(18.13, 22.92, 98.98°)
OKLaboklab(29.3% -0.0121 0.0523)
OKLCHoklch(29.3% 0.054 103.1)
XYZxyz(2.2489, 2.5474, 0.6029)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D08 #080C31
analogous
#311808 #312D08 #203108
triadic
#312D08 #08312D #2D0831
tetradic
#312D08 #083118 #080C31 #310820
square
#312D08 #083118 #080C31 #310820
split-complementary
#312D08 #082031 #180831
monochromatic
#1A1804 #1A1804 #312D08 #665D11 #9A8E19

Accessibility & contrast

On white

13.91
#312D08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312D08
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D08#FFFFFF#000000##FFFFFF
##312D081.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B04
Deuteranopia (green-blind)
#332D0A
Tritanopia (blue-blind)
#352926
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #312d08;
/* rgb */ color: rgb(49, 45, 8);
/* oklch */ color: oklch(29.3% 0.054 103.1);
Tailwind
colors: {
  custom: {
    50: '#6b654b',
    500: '#312d08',
    950: '#000000',
  },
}
SCSS
$custom: #312d08;
$custom-light: #6b654b;
$custom-dark: #000000;
JSON
{
  "hex": "#312d08",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 8
  },
  "hsl": {
    "h": 54.146,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.29301,
    "c": 0.05366,
    "h": 103.1
  },
  "luminance": 0.02547
}

Semantic roles & 50–950 ramp

primary
#312D08
secondary
#252C70
accent
#4BEF39
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070501
muted
#7A7A77

Preview Lab

Preview with #312D08

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

Preview Lab → · Contrast checker → · Palette generator →

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