#312F06#312F06

#312F06 is a dark, muted yellow. Relative luminance 0.027; OKLCH L 29.8% C 0.058 H 106.6°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#312F06
RGBrgb(49, 47, 6)
HSLhsl(57, 78%, 11%)
HSVhsv(57, 88%, 19%)
CMYKcmyk(0%, 4.1%, 87.8%, 80.8%)
CIE-LABlab(18.80, -5.03, 24.24)
CIE-LCHlch(18.80, 24.75, 101.72°)
OKLaboklab(29.83% -0.0165 0.0555)
OKLCHoklch(29.83% 0.058 106.6)
XYZxyz(2.3161, 2.6992, 0.5713)
Luminance0.0270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F06 #060831
analogous
#311906 #312F06 #1D3106
triadic
#312F06 #06312F #2F0631
tetradic
#312F06 #063119 #060831 #31061D
square
#312F06 #063119 #060831 #31061D
split-complementary
#312F06 #061D31 #190631
monochromatic
#1B1A03 #1B1A03 #312F06 #68630D #9E9813

Accessibility & contrast

On white

13.64
#312F06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312F06
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F06#FFFFFF#000000##FFFFFF
##312F061.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D01
Deuteranopia (green-blind)
#352E09
Tritanopia (blue-blind)
#352B27
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #312f06;
/* rgb */ color: rgb(49, 47, 6);
/* oklch */ color: oklch(29.8% 0.058 106.6);
Tailwind
colors: {
  custom: {
    50: '#6b674a',
    500: '#312f06',
    950: '#000000',
  },
}
SCSS
$custom: #312f06;
$custom-light: #6b674a;
$custom-dark: #000000;
JSON
{
  "hex": "#312f06",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 6
  },
  "hsl": {
    "h": 57.209,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.29825,
    "c": 0.05787,
    "h": 106.6
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#312F06
secondary
#212572
accent
#3CF533
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #312F06

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

Preview Lab → · Contrast checker → · Palette generator →

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