#312F0F#312F0F

#312F0F is a dark, muted yellow. Relative luminance 0.027; OKLCH L 29.9% C 0.049 H 105.7°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#312F0F
RGBrgb(49, 47, 15)
HSLhsl(56, 53%, 13%)
HSVhsv(56, 69%, 19%)
CMYKcmyk(0%, 4.1%, 69.4%, 80.8%)
CIE-LABlab(18.89, -4.32, 20.38)
CIE-LCHlch(18.89, 20.83, 101.97°)
OKLaboklab(29.93% -0.0132 0.0472)
OKLCHoklch(29.93% 0.049 105.7)
XYZxyz(2.3694, 2.7206, 0.8522)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F0F #0F1131
analogous
#311E0F #312F0F #22310F
triadic
#312F0F #0F312F #2F0F31
tetradic
#312F0F #0F311E #0F1131 #310F22
square
#312F0F #0F311E #0F1131 #310F22
split-complementary
#312F0F #0F2231 #1E0F31
monochromatic
#171607 #171607 #312F0F #605C1D #8F892C

Accessibility & contrast

On white

13.60
#312F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#312F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F0F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F0F#FFFFFF#000000##FFFFFF
##312F0F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332D0C
Deuteranopia (green-blind)
#342F11
Tritanopia (blue-blind)
#352C28
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #312f0f;
/* rgb */ color: rgb(49, 47, 15);
/* oklch */ color: oklch(29.9% 0.049 105.7);
Tailwind
colors: {
  custom: {
    50: '#6a674e',
    500: '#312f0f',
    950: '#000000',
  },
}
SCSS
$custom: #312f0f;
$custom-light: #6a674e;
$custom-dark: #000000;
JSON
{
  "hex": "#312f0f",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 15
  },
  "hsl": {
    "h": 56.471,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.29927,
    "c": 0.04905,
    "h": 105.7
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#312F0F
secondary
#31346B
accent
#54DD4B
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #312F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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