#1F2004#1F2004

#1F2004 is a very dark, muted yellow. Relative luminance 0.013; OKLCH L 23.5% C 0.045 H 111.3°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#1F2004
RGBrgb(31, 32, 4)
HSLhsl(62, 78%, 7%)
HSVhsv(62, 88%, 13%)
CMYKcmyk(3.1%, 0%, 87.5%, 87.5%)
CIE-LABlab(11.51, -5.34, 15.35)
CIE-LCHlch(11.51, 16.25, 109.18°)
OKLaboklab(23.53% -0.0165 0.0423)
OKLCHoklch(23.53% 0.045 111.3)
XYZxyz(1.1035, 1.3331, 0.3140)
Luminance0.0133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2004 #050420
analogous
#201304 #1F2004 #112004
triadic
#1F2004 #041F20 #20041F
tetradic
#1F2004 #042013 #050420 #200411
square
#1F2004 #042013 #050420 #200411
split-complementary
#1F2004 #041120 #130420
monochromatic
#1A1B03 #1A1B03 #1F2004 #54560B #888D12

Accessibility & contrast

On white

16.58
#1F2004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2004
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2004#FFFFFF#000000##FFFFFF
##1F20041.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231E02
Deuteranopia (green-blind)
#231F05
Tritanopia (blue-blind)
#221D1A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f2004;
/* rgb */ color: rgb(31, 32, 4);
/* oklch */ color: oklch(23.5% 0.045 111.3);
Tailwind
colors: {
  custom: {
    50: '#5a5b48',
    500: '#1f2004',
    950: '#000000',
  },
}
SCSS
$custom: #1f2004;
$custom-light: #5a5b48;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2004",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 4
  },
  "hsl": {
    "h": 62.143,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.23528,
    "c": 0.04539,
    "h": 111.3
  },
  "luminance": 0.01333
}

Semantic roles & 50–950 ramp

primary
#1F2004
secondary
#201D63
accent
#34F43A
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040400
muted
#797977

Preview Lab

Preview with #1F2004

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

Preview Lab → · Contrast checker → · Palette generator →

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