#312F05#312F05

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

Color values

HEX#312F05
RGBrgb(49, 47, 5)
HSLhsl(57, 81%, 11%)
HSVhsv(57, 90%, 19%)
CMYKcmyk(0%, 4.1%, 89.8%, 80.8%)
CIE-LABlab(18.79, -5.10, 24.63)
CIE-LCHlch(18.79, 25.16, 101.70°)
OKLaboklab(29.81% -0.0169 0.0564)
OKLCHoklch(29.81% 0.059 106.7)
XYZxyz(2.3106, 2.6970, 0.5424)
Luminance0.0270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F05 #050731
analogous
#311905 #312F05 #1D3105
triadic
#312F05 #05312F #2F0531
tetradic
#312F05 #053119 #050731 #31051D
square
#312F05 #053119 #050731 #31051D
split-complementary
#312F05 #051D31 #190531
monochromatic
#1C1B03 #1C1B03 #312F05 #69640B #A09A10

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312F05#FFFFFF#000000##FFFFFF
##312F051.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)
#342D00
Deuteranopia (green-blind)
#352E08
Tritanopia (blue-blind)
#352B27
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #312f05;
/* rgb */ color: rgb(49, 47, 5);
/* oklch */ color: oklch(29.8% 0.059 106.7);
Tailwind
colors: {
  custom: {
    50: '#6b6749',
    500: '#312f05',
    950: '#000000',
  },
}
SCSS
$custom: #312f05;
$custom-light: #6b6749;
$custom-dark: #000000;
JSON
{
  "hex": "#312f05",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 5
  },
  "hsl": {
    "h": 57.273,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.29814,
    "c": 0.05884,
    "h": 106.7
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#312F05
secondary
#1F2372
accent
#39F830
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #312F05

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

Preview Lab → · Contrast checker → · Palette generator →

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