#312803#312803

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

Color values

HEX#312803
RGBrgb(49, 40, 3)
HSLhsl(48, 88%, 10%)
HSVhsv(48, 94%, 19%)
CMYKcmyk(0%, 18.4%, 93.9%, 80.8%)
CIE-LABlab(16.39, -0.62, 22.56)
CIE-LCHlch(16.39, 22.56, 91.57°)
OKLaboklab(27.91% -0.0047 0.0538)
OKLCHoklch(27.91% 0.054 95)
XYZxyz(2.0420, 2.1772, 0.3988)
Luminance0.0218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312803 #030C31
analogous
#311103 #312803 #233103
triadic
#312803 #033128 #280331
tetradic
#312803 #033111 #030C31 #310323
square
#312803 #033111 #030C31 #310323
split-complementary
#312803 #032331 #110331
monochromatic
#1D1802 #1D1802 #312803 #6B5707 #A4860A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312803#FFFFFF#000000##FFFFFF
##3128031.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)
#302A05
Tritanopia (blue-blind)
#362421
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #312803;
/* rgb */ color: rgb(49, 40, 3);
/* oklch */ color: oklch(27.9% 0.054 95.0);
Tailwind
colors: {
  custom: {
    50: '#6b6148',
    500: '#312803',
    950: '#000000',
  },
}
SCSS
$custom: #312803;
$custom-light: #6b6148;
$custom-dark: #000000;
JSON
{
  "hex": "#312803",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 3
  },
  "hsl": {
    "h": 48.261,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.27905,
    "c": 0.05398,
    "h": 95
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#312803
secondary
#1B2D74
accent
#53FF29
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #312803

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

Preview Lab → · Contrast checker → · Palette generator →

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