#313017#313017

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

Color values

HEX#313017
RGBrgb(49, 48, 23)
HSLhsl(58, 36%, 14%)
HSVhsv(58, 53%, 19%)
CMYKcmyk(0%, 2%, 53.1%, 80.8%)
CIE-LABlab(19.34, -4.08, 16.11)
CIE-LCHlch(19.34, 16.62, 104.22°)
OKLaboklab(30.33% -0.0115 0.0388)
OKLCHoklch(30.33% 0.04 106.6)
XYZxyz(2.4783, 2.8288, 1.2259)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313017 #171831
analogous
#312317 #313017 #253117
triadic
#313017 #173130 #301731
tetradic
#313017 #173123 #171831 #311725
square
#313017 #173123 #171831 #311725
split-complementary
#313017 #172531 #231731
monochromatic
#15140A #15140A #313017 #5B592B #84823E

Accessibility & contrast

On white

13.41
#313017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313017
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313017#FFFFFF#000000##FFFFFF
##3130171.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313017;
/* rgb */ color: rgb(49, 48, 23);
/* oklch */ color: oklch(30.3% 0.040 106.6);
Tailwind
colors: {
  custom: {
    50: '#6a6854',
    500: '#313017',
    950: '#000000',
  },
}
SCSS
$custom: #313017;
$custom-light: #6a6854;
$custom-dark: #000000;
JSON
{
  "hex": "#313017",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 23
  },
  "hsl": {
    "h": 57.692,
    "s": 36.111,
    "l": 14.118
  },
  "oklch": {
    "l": 0.30327,
    "c": 0.04043,
    "h": 106.6
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#313017
secondary
#3D3F67
accent
#60CC5C
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #313017

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

Preview Lab → · Contrast checker → · Palette generator →

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