#1F2012#1F2012

#1F2012 is a very dark, muted yellow. Relative luminance 0.014; OKLCH L 23.8% C 0.025 H 111.6°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#1F2012
RGBrgb(31, 32, 18)
HSLhsl(64, 28%, 10%)
HSVhsv(64, 44%, 13%)
CMYKcmyk(3.1%, 0%, 43.8%, 87.5%)
CIE-LABlab(11.74, -3.45, 9.18)
CIE-LCHlch(11.74, 9.81, 110.61°)
OKLaboklab(23.8% -0.0092 0.0233)
OKLCHoklch(23.8% 0.025 111.6)
XYZxyz(1.1908, 1.3680, 0.7735)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2012 #131220
analogous
#201A12 #1F2012 #182012
triadic
#1F2012 #121F20 #20121F
tetradic
#1F2012 #12201A #131220 #201218
square
#1F2012 #12201A #131220 #201218
split-complementary
#1F2012 #121820 #1A1220
monochromatic
#13140B #13140B #1F2012 #454728 #6B6E3E

Accessibility & contrast

On white

16.49
#1F2012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1F2012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2012
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2012#FFFFFF#000000##FFFFFF
##1F20121.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#221F11
Deuteranopia (green-blind)
#221F13
Tritanopia (blue-blind)
#211E1C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f2012;
/* rgb */ color: rgb(31, 32, 18);
/* oklch */ color: oklch(23.8% 0.025 111.6);
Tailwind
colors: {
  custom: {
    50: '#5a5b50',
    500: '#1f2012',
    950: '#000000',
  },
}
SCSS
$custom: #1f2012;
$custom-light: #5a5b50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2012",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 18
  },
  "hsl": {
    "h": 64.286,
    "s": 28,
    "l": 9.804
  },
  "oklch": {
    "l": 0.23795,
    "c": 0.02505,
    "h": 111.6
  },
  "luminance": 0.01368
}

Semantic roles & 50–950 ramp

primary
#1F2012
secondary
#3B3955
accent
#63C46A
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040402
muted
#797978

Preview Lab

Preview with #1F2012

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

Preview Lab → · Contrast checker → · Palette generator →

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