#312B0F#312B0F

#312B0F is a dark, muted yellow. Relative luminance 0.024; OKLCH L 28.8% C 0.044 H 97.4°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#312B0F
RGBrgb(49, 43, 15)
HSLhsl(49, 53%, 13%)
HSVhsv(49, 69%, 19%)
CMYKcmyk(0%, 12.2%, 69.4%, 80.8%)
CIE-LABlab(17.53, -1.67, 18.76)
CIE-LCHlch(17.53, 18.84, 95.10°)
OKLaboklab(28.85% -0.0057 0.044)
OKLCHoklch(28.85% 0.044 97.4)
XYZxyz(2.2168, 2.4153, 0.8013)
Luminance0.0242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B0F #0F1531
analogous
#311A0F #312B0F #26310F
triadic
#312B0F #0F312B #2B0F31
tetradic
#312B0F #0F311A #0F1531 #310F26
square
#312B0F #0F311A #0F1531 #310F26
split-complementary
#312B0F #0F2631 #1A0F31
monochromatic
#171507 #171507 #312B0F #60541D #8F7D2C

Accessibility & contrast

On white

14.16
#312B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312B0F
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B0F#FFFFFF#000000##FFFFFF
##312B0F1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A0C
Deuteranopia (green-blind)
#312C10
Tritanopia (blue-blind)
#352825
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312b0f;
/* rgb */ color: rgb(49, 43, 15);
/* oklch */ color: oklch(28.8% 0.044 97.4);
Tailwind
colors: {
  custom: {
    50: '#6a644e',
    500: '#312b0f',
    950: '#000000',
  },
}
SCSS
$custom: #312b0f;
$custom-light: #6a644e;
$custom-dark: #000000;
JSON
{
  "hex": "#312b0f",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 15
  },
  "hsl": {
    "h": 49.412,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.2885,
    "c": 0.04432,
    "h": 97.4
  },
  "luminance": 0.02415
}

Semantic roles & 50–950 ramp

primary
#312B0F
secondary
#313B6B
accent
#65DD4B
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#060501
muted
#7A7977

Preview Lab

Preview with #312B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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