#312B05#312B05

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

Color values

HEX#312B05
RGBrgb(49, 43, 5)
HSLhsl(52, 81%, 11%)
HSVhsv(52, 90%, 19%)
CMYKcmyk(0%, 12.2%, 89.8%, 80.8%)
CIE-LABlab(17.42, -2.48, 23.01)
CIE-LCHlch(17.42, 23.14, 96.15°)
OKLaboklab(28.73% -0.0095 0.0537)
OKLCHoklch(28.73% 0.055 100.1)
XYZxyz(2.1580, 2.3918, 0.4915)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B05 #050B31
analogous
#311505 #312B05 #213105
triadic
#312B05 #05312B #2B0531
tetradic
#312B05 #053115 #050B31 #310521
square
#312B05 #053115 #050B31 #310521
split-complementary
#312B05 #052131 #150531
monochromatic
#1C1803 #1C1803 #312B05 #695C0B #A08C10

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312B05#FFFFFF#000000##FFFFFF
##312B051.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)
#302A01
Deuteranopia (green-blind)
#322C07
Tritanopia (blue-blind)
#362724
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312b05;
/* rgb */ color: rgb(49, 43, 5);
/* oklch */ color: oklch(28.7% 0.055 100.1);
Tailwind
colors: {
  custom: {
    50: '#6b6449',
    500: '#312b05',
    950: '#000000',
  },
}
SCSS
$custom: #312b05;
$custom-light: #6b6449;
$custom-dark: #000000;
JSON
{
  "hex": "#312b05",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 5
  },
  "hsl": {
    "h": 51.818,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.28728,
    "c": 0.05453,
    "h": 100.1
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#312B05
secondary
#1F2B72
accent
#4BF830
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #312B05

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

Preview Lab → · Contrast checker → · Palette generator →

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