#313228#313228

#313228 is a dark, near-neutral yellow. Relative luminance 0.031; OKLCH L 31.3% C 0.017 H 112.0°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#313228
RGBrgb(49, 50, 40)
HSLhsl(66, 11%, 18%)
HSVhsv(66, 20%, 20%)
CMYKcmyk(2%, 0%, 20%, 80.4%)
CIE-LABlab(20.39, -2.61, 6.23)
CIE-LCHlch(20.39, 6.76, 112.75°)
OKLaboklab(31.28% -0.0065 0.016)
OKLCHoklch(31.28% 0.017 112)
XYZxyz(2.7902, 3.0874, 2.4560)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313228 #292832
analogous
#322E28 #313228 #2C3228
triadic
#313228 #283132 #322831
tetradic
#313228 #28322E #292832 #32282C
square
#313228 #28322E #292832 #32282C
split-complementary
#313228 #282C32 #2E2832
monochromatic
#11110E #11110E #313228 #525443 #74765E

Accessibility & contrast

On white

12.98
#313228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#313228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313228
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313228#FFFFFF#000000##FFFFFF
##3132281.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343127
Deuteranopia (green-blind)
#343128
Tritanopia (blue-blind)
#32312F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #313228;
/* rgb */ color: rgb(49, 50, 40);
/* oklch */ color: oklch(31.3% 0.017 112.0);
Tailwind
colors: {
  custom: {
    50: '#696961',
    500: '#313228',
    950: '#000000',
  },
}
SCSS
$custom: #313228;
$custom-light: #696961;
$custom-dark: #000000;
JSON
{
  "hex": "#313228",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 40
  },
  "hsl": {
    "h": 66,
    "s": 11.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.31277,
    "c": 0.01729,
    "h": 112
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#313228
secondary
#555462
accent
#74B47A
background
#F6F6F5
surface
#EBEBE9
border
#C6C6C5
text
#060605
muted
#7A7A79

Preview Lab

Preview with #313228

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

Preview Lab → · Contrast checker → · Palette generator →

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