#312C04#312C04

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

Color values

HEX#312C04
RGBrgb(49, 44, 4)
HSLhsl(53, 85%, 10%)
HSVhsv(53, 92%, 19%)
CMYKcmyk(0%, 10.2%, 91.8%, 80.8%)
CIE-LABlab(17.75, -3.22, 23.81)
CIE-LCHlch(17.75, 24.03, 97.69°)
OKLaboklab(28.99% -0.0118 0.0553)
OKLCHoklch(28.99% 0.057 102)
XYZxyz(2.1893, 2.4632, 0.4750)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C04 #040931
analogous
#311504 #312C04 #1F3104
triadic
#312C04 #04312C #2C0431
tetradic
#312C04 #043115 #040931 #31041F
square
#312C04 #043115 #040931 #31041F
split-complementary
#312C04 #041F31 #150431
monochromatic
#1C1902 #1C1902 #312C04 #6A5F09 #A2920D

Accessibility & contrast

On white

14.07
#312C04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#312C04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C04
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C04#FFFFFF#000000##FFFFFF
##312C041.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#332C06
Tritanopia (blue-blind)
#362824
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312c04;
/* rgb */ color: rgb(49, 44, 4);
/* oklch */ color: oklch(29.0% 0.057 102.0);
Tailwind
colors: {
  custom: {
    50: '#6b6449',
    500: '#312c04',
    950: '#000000',
  },
}
SCSS
$custom: #312c04;
$custom-light: #6b6449;
$custom-dark: #000000;
JSON
{
  "hex": "#312c04",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 4
  },
  "hsl": {
    "h": 53.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.28987,
    "c": 0.05656,
    "h": 102
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#312C04
secondary
#1D2773
accent
#44FB2D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070501
muted
#7A7A77

Preview Lab

Preview with #312C04

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

Preview Lab → · Contrast checker → · Palette generator →

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