#312802#312802

#312802 is a dark, muted yellow. Relative luminance 0.022; OKLCH L 27.9% C 0.055 H 95.3°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#312802
RGBrgb(49, 40, 2)
HSLhsl(49, 92%, 10%)
HSVhsv(49, 96%, 19%)
CMYKcmyk(0%, 18.4%, 95.9%, 80.8%)
CIE-LABlab(16.38, -0.70, 22.95)
CIE-LCHlch(16.38, 22.96, 91.74°)
OKLaboklab(27.89% -0.0051 0.0548)
OKLCHoklch(27.89% 0.055 95.3)
XYZxyz(2.0365, 2.1751, 0.3700)
Luminance0.0217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312802 #020B31
analogous
#311102 #312802 #223102
triadic
#312802 #023128 #280231
tetradic
#312802 #023111 #020B31 #310222
square
#312802 #023111 #020B31 #310222
split-complementary
#312802 #022231 #110231
monochromatic
#1D1801 #1D1801 #312802 #6C5804 #A78807

Accessibility & contrast

On white

14.63
#312802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#312802 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312802
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312802#FFFFFF#000000##FFFFFF
##3128021.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2700
Deuteranopia (green-blind)
#302A04
Tritanopia (blue-blind)
#362421
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #312802;
/* rgb */ color: rgb(49, 40, 2);
/* oklch */ color: oklch(27.9% 0.055 95.3);
Tailwind
colors: {
  custom: {
    50: '#6b6148',
    500: '#312802',
    950: '#000000',
  },
}
SCSS
$custom: #312802;
$custom-light: #6b6148;
$custom-dark: #000000;
JSON
{
  "hex": "#312802",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 2
  },
  "hsl": {
    "h": 48.511,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.27893,
    "c": 0.05508,
    "h": 95.3
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#312802
secondary
#192B75
accent
#52FF29
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #312802

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

Preview Lab → · Contrast checker → · Palette generator →

#312802 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva