#312B06#312B06

#312B06 is a dark, muted yellow. Relative luminance 0.024; OKLCH L 28.7% C 0.054 H 99.8°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#312B06
RGBrgb(49, 43, 6)
HSLhsl(52, 78%, 11%)
HSVhsv(52, 88%, 19%)
CMYKcmyk(0%, 12.2%, 87.8%, 80.8%)
CIE-LABlab(17.43, -2.40, 22.61)
CIE-LCHlch(17.43, 22.74, 96.07°)
OKLaboklab(28.74% -0.0091 0.0527)
OKLCHoklch(28.74% 0.054 99.8)
XYZxyz(2.1635, 2.3940, 0.5204)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B06 #060C31
analogous
#311506 #312B06 #213106
triadic
#312B06 #06312B #2B0631
tetradic
#312B06 #063115 #060C31 #310621
square
#312B06 #063115 #060C31 #310621
split-complementary
#312B06 #062131 #150631
monochromatic
#1B1803 #1B1803 #312B06 #685B0D #9E8B13

Accessibility & contrast

On white

14.20
#312B06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#312B06 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312B06
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B06#FFFFFF#000000##FFFFFF
##312B061.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A02
Deuteranopia (green-blind)
#322C08
Tritanopia (blue-blind)
#362724
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312b06;
/* rgb */ color: rgb(49, 43, 6);
/* oklch */ color: oklch(28.7% 0.054 99.8);
Tailwind
colors: {
  custom: {
    50: '#6b644a',
    500: '#312b06',
    950: '#000000',
  },
}
SCSS
$custom: #312b06;
$custom-light: #6b644a;
$custom-dark: #000000;
JSON
{
  "hex": "#312b06",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 6
  },
  "hsl": {
    "h": 51.628,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.2874,
    "c": 0.05352,
    "h": 99.8
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#312B06
secondary
#212C72
accent
#4EF533
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312B06

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

Preview Lab → · Contrast checker → · Palette generator →

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