#1F2104#1F2104

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

Color values

HEX#1F2104
RGBrgb(31, 33, 4)
HSLhsl(64, 78%, 7%)
HSVhsv(64, 88%, 13%)
CMYKcmyk(6.1%, 0%, 87.9%, 87.1%)
CIE-LABlab(11.88, -6.01, 15.85)
CIE-LCHlch(11.88, 16.96, 110.76°)
OKLaboklab(23.83% -0.0184 0.0431)
OKLCHoklch(23.83% 0.047 113.1)
XYZxyz(1.1309, 1.3878, 0.3231)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2104 #060421
analogous
#211504 #1F2104 #112104
triadic
#1F2104 #041F21 #21041F
tetradic
#1F2104 #042115 #060421 #210411
square
#1F2104 #042115 #060421 #210411
split-complementary
#1F2104 #041121 #150421
monochromatic
#1A1B03 #1A1B03 #1F2104 #52580B #868E11

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2104#FFFFFF#000000##FFFFFF
##1F21041.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)
#241F02
Deuteranopia (green-blind)
#242005
Tritanopia (blue-blind)
#221E1B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f2104;
/* rgb */ color: rgb(31, 33, 4);
/* oklch */ color: oklch(23.8% 0.047 113.1);
Tailwind
colors: {
  custom: {
    50: '#5b5c48',
    500: '#1f2104',
    950: '#000000',
  },
}
SCSS
$custom: #1f2104;
$custom-light: #5b5c48;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2104",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 4
  },
  "hsl": {
    "h": 64.138,
    "s": 78.378,
    "l": 7.255
  },
  "oklch": {
    "l": 0.23825,
    "c": 0.04681,
    "h": 113.1
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#1F2104
secondary
#221D64
accent
#33F540
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040400
muted
#797977

Preview Lab

Preview with #1F2104

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

Preview Lab → · Contrast checker → · Palette generator →

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