#312F09#312F09

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

Color values

HEX#312F09
RGBrgb(49, 47, 9)
HSLhsl(57, 69%, 11%)
HSVhsv(57, 82%, 19%)
CMYKcmyk(0%, 4.1%, 81.6%, 80.8%)
CIE-LABlab(18.82, -4.81, 23.05)
CIE-LCHlch(18.82, 23.54, 101.78°)
OKLaboklab(29.86% -0.0155 0.0528)
OKLCHoklch(29.86% 0.055 106.3)
XYZxyz(2.3325, 2.7058, 0.6578)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F09 #090B31
analogous
#311B09 #312F09 #1F3109
triadic
#312F09 #09312F #2F0931
tetradic
#312F09 #09311B #090B31 #31091F
square
#312F09 #09311B #090B31 #31091F
split-complementary
#312F09 #091F31 #1B0931
monochromatic
#1A1905 #1A1905 #312F09 #656112 #98921C

Accessibility & contrast

On white

13.63
#312F09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312F09
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F09#FFFFFF#000000##FFFFFF
##312F091.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312f09;
/* rgb */ color: rgb(49, 47, 9);
/* oklch */ color: oklch(29.9% 0.055 106.3);
Tailwind
colors: {
  custom: {
    50: '#6b674b',
    500: '#312f09',
    950: '#000000',
  },
}
SCSS
$custom: #312f09;
$custom-light: #6b674b;
$custom-dark: #000000;
JSON
{
  "hex": "#312f09",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 9
  },
  "hsl": {
    "h": 57,
    "s": 68.966,
    "l": 11.373
  },
  "oklch": {
    "l": 0.29856,
    "c": 0.05505,
    "h": 106.3
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#312F09
secondary
#272A6F
accent
#45EC3C
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #312F09

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

Preview Lab → · Contrast checker → · Palette generator →

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