#313018#313018

#313018 is a dark, muted yellow. Relative luminance 0.028; OKLCH L 30.3% C 0.039 H 106.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#313018
RGBrgb(49, 48, 24)
HSLhsl(58, 34%, 14%)
HSVhsv(58, 51%, 19%)
CMYKcmyk(0%, 2%, 51%, 80.8%)
CIE-LABlab(19.36, -3.95, 15.50)
CIE-LCHlch(19.36, 15.99, 104.31°)
OKLaboklab(30.35% -0.011 0.0375)
OKLCHoklch(30.35% 0.039 106.4)
XYZxyz(2.4885, 2.8329, 1.2797)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313018 #181931
analogous
#312418 #313018 #263118
triadic
#313018 #183130 #301831
tetradic
#313018 #183124 #181931 #311826
square
#313018 #183124 #181931 #311826
split-complementary
#313018 #182631 #241831
monochromatic
#15140A #15140A #313018 #5A582C #838040

Accessibility & contrast

On white

13.40
#313018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#313018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313018
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313018#FFFFFF#000000##FFFFFF
##3130181.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E16
Deuteranopia (green-blind)
#342F19
Tritanopia (blue-blind)
#342D2A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #313018;
/* rgb */ color: rgb(49, 48, 24);
/* oklch */ color: oklch(30.3% 0.039 106.4);
Tailwind
colors: {
  custom: {
    50: '#6a6855',
    500: '#313018',
    950: '#000000',
  },
}
SCSS
$custom: #313018;
$custom-light: #6a6855;
$custom-dark: #000000;
JSON
{
  "hex": "#313018",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 24
  },
  "hsl": {
    "h": 57.6,
    "s": 34.247,
    "l": 14.314
  },
  "oklch": {
    "l": 0.30346,
    "c": 0.03904,
    "h": 106.4
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#313018
secondary
#3F4066
accent
#62CA5D
background
#F6F6F4
surface
#EBEBE8
border
#C6C6C4
text
#060603
muted
#7A7A78

Preview Lab

Preview with #313018

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

Preview Lab → · Contrast checker → · Palette generator →

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