#1F2017#1F2017

#1F2017 is a very dark, near-neutral yellow. Relative luminance 0.014; OKLCH L 23.9% C 0.017 H 112.8°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#1F2017
RGBrgb(31, 32, 23)
HSLhsl(67, 16%, 11%)
HSVhsv(67, 28%, 13%)
CMYKcmyk(3.1%, 0%, 28.1%, 87.5%)
CIE-LABlab(11.87, -2.52, 5.98)
CIE-LCHlch(11.87, 6.49, 112.88°)
OKLaboklab(23.93% -0.0064 0.0153)
OKLCHoklch(23.93% 0.017 112.8)
XYZxyz(1.2362, 1.3862, 1.0129)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2017 #181720
analogous
#201C17 #1F2017 #1A2017
triadic
#1F2017 #171F20 #20171F
tetradic
#1F2017 #17201C #181720 #20171A
square
#1F2017 #17201C #181720 #20171A
split-complementary
#1F2017 #171A20 #1C1720
monochromatic
#11120D #11120D #1F2017 #414431 #64674A

Accessibility & contrast

On white

16.44
#1F2017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1F2017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2017
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2017#FFFFFF#000000##FFFFFF
##1F20171.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211F16
Deuteranopia (green-blind)
#211F17
Tritanopia (blue-blind)
#201F1E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f2017;
/* rgb */ color: rgb(31, 32, 23);
/* oklch */ color: oklch(23.9% 0.017 112.8);
Tailwind
colors: {
  custom: {
    50: '#5a5b53',
    500: '#1f2017',
    950: '#000000',
  },
}
SCSS
$custom: #1f2017;
$custom-light: #5a5b53;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2017",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 23
  },
  "hsl": {
    "h": 66.667,
    "s": 16.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.23932,
    "c": 0.01654,
    "h": 112.8
  },
  "luminance": 0.01386
}

Semantic roles & 50–950 ramp

primary
#1F2017
secondary
#434152
accent
#6FB977
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#030402
muted
#787978

Preview Lab

Preview with #1F2017

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

Preview Lab → · Contrast checker → · Palette generator →

#1F2017 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva