#313128#313128

#313128 is a dark, near-neutral yellow. Relative luminance 0.030; OKLCH L 31.0% C 0.016 H 107.3°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#313128
RGBrgb(49, 49, 40)
HSLhsl(60, 10%, 17%)
HSVhsv(60, 18%, 19%)
CMYKcmyk(0%, 0%, 18.4%, 80.8%)
CIE-LABlab(20.06, -1.95, 5.76)
CIE-LCHlch(20.06, 6.08, 108.71°)
OKLaboklab(31.01% -0.0046 0.0149)
OKLCHoklch(31.01% 0.016 107.3)
XYZxyz(2.7479, 3.0028, 2.4419)
Luminance0.0300 (WCAG relative)
Temperatureneutral
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313128 #282831
analogous
#312D28 #313128 #2D3128
triadic
#313128 #283131 #312831
tetradic
#313128 #28312D #282831 #31282D
square
#313128 #28312D #282831 #31282D
split-complementary
#313128 #282D31 #2D2831
monochromatic
#11110E #11110E #313128 #535344 #74745F

Accessibility & contrast

On white

13.12
#313128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#313128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313128
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313128#FFFFFF#000000##FFFFFF
##3131281.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333027
Deuteranopia (green-blind)
#333128
Tritanopia (blue-blind)
#32302E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #313128;
/* rgb */ color: rgb(49, 49, 40);
/* oklch */ color: oklch(31.0% 0.016 107.3);
Tailwind
colors: {
  custom: {
    50: '#696961',
    500: '#313128',
    950: '#000000',
  },
}
SCSS
$custom: #313128;
$custom-light: #696961;
$custom-dark: #000000;
JSON
{
  "hex": "#313128",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 10.112,
    "l": 17.451
  },
  "oklch": {
    "l": 0.31012,
    "c": 0.01555,
    "h": 107.3
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#313128
secondary
#545461
accent
#75B375
background
#F6F6F5
surface
#EBEBE9
border
#C6C6C5
text
#060605
muted
#7A7A79

Preview Lab

Preview with #313128

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

Preview Lab → · Contrast checker → · Palette generator →

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