#312704#312704

#312704 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.7% C 0.052 H 92.6°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#312704
RGBrgb(49, 39, 4)
HSLhsl(47, 85%, 10%)
HSVhsv(47, 92%, 19%)
CMYKcmyk(0%, 20.4%, 91.8%, 80.8%)
CIE-LABlab(16.07, 0.14, 21.75)
CIE-LCHlch(16.07, 21.75, 89.64°)
OKLaboklab(27.65% -0.0023 0.0521)
OKLCHoklch(27.65% 0.052 92.6)
XYZxyz(2.0142, 2.1129, 0.4166)
Luminance0.0211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312704 #040E31
analogous
#311004 #312704 #243104
triadic
#312704 #043127 #270431
tetradic
#312704 #043110 #040E31 #310424
square
#312704 #043110 #040E31 #310424
split-complementary
#312704 #042431 #100431
monochromatic
#1C1702 #1C1702 #312704 #6A5409 #A2810D

Accessibility & contrast

On white

14.76
#312704 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#312704 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312704
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312704#FFFFFF#000000##FFFFFF
##3127041.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2601
Deuteranopia (green-blind)
#2F2906
Tritanopia (blue-blind)
#362320
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #312704;
/* rgb */ color: rgb(49, 39, 4);
/* oklch */ color: oklch(27.7% 0.052 92.6);
Tailwind
colors: {
  custom: {
    50: '#6b6048',
    500: '#312704',
    950: '#000000',
  },
}
SCSS
$custom: #312704;
$custom-light: #6b6048;
$custom-dark: #000000;
JSON
{
  "hex": "#312704",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 4
  },
  "hsl": {
    "h": 46.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27654,
    "c": 0.05213,
    "h": 92.6
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#312704
secondary
#1D3073
accent
#5BFB2D
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #312704

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

Preview Lab → · Contrast checker → · Palette generator →

#312704 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva