#312904#312904

#312904 is a dark, muted yellow. Relative luminance 0.022; OKLCH L 28.2% C 0.054 H 96.6°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#312904
RGBrgb(49, 41, 4)
HSLhsl(49, 85%, 10%)
HSVhsv(49, 92%, 19%)
CMYKcmyk(0%, 16.3%, 91.8%, 80.8%)
CIE-LABlab(16.74, -1.22, 22.58)
CIE-LCHlch(16.74, 22.61, 93.08°)
OKLaboklab(28.18% -0.0062 0.0534)
OKLCHoklch(28.18% 0.054 96.6)
XYZxyz(2.0816, 2.2477, 0.4391)
Luminance0.0225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312904 #040C31
analogous
#311204 #312904 #223104
triadic
#312904 #043129 #290431
tetradic
#312904 #043112 #040C31 #310422
square
#312904 #043112 #040C31 #310422
split-complementary
#312904 #042231 #120431
monochromatic
#1C1802 #1C1802 #312904 #6A5809 #A2880D

Accessibility & contrast

On white

14.49
#312904 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#312904 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312904
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312904#FFFFFF#000000##FFFFFF
##3129041.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2800
Deuteranopia (green-blind)
#302A06
Tritanopia (blue-blind)
#362522
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #312904;
/* rgb */ color: rgb(49, 41, 4);
/* oklch */ color: oklch(28.2% 0.054 96.6);
Tailwind
colors: {
  custom: {
    50: '#6b6249',
    500: '#312904',
    950: '#000000',
  },
}
SCSS
$custom: #312904;
$custom-light: #6b6249;
$custom-dark: #000000;
JSON
{
  "hex": "#312904",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 4
  },
  "hsl": {
    "h": 49.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.28182,
    "c": 0.05372,
    "h": 96.6
  },
  "luminance": 0.02248
}

Semantic roles & 50–950 ramp

primary
#312904
secondary
#1D2D73
accent
#51FB2D
background
#F6F5F4
surface
#EBEAE6
border
#C6C6C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #312904

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

Preview Lab → · Contrast checker → · Palette generator →

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