#1F2007#1F2007

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

Color values

HEX#1F2007
RGBrgb(31, 32, 7)
HSLhsl(62, 64%, 8%)
HSVhsv(62, 78%, 13%)
CMYKcmyk(3.1%, 0%, 78.1%, 87.5%)
CIE-LABlab(11.55, -4.97, 14.18)
CIE-LCHlch(11.55, 15.03, 109.32°)
OKLaboklab(23.58% -0.0149 0.0382)
OKLCHoklch(23.58% 0.041 111.3)
XYZxyz(1.1200, 1.3397, 0.4006)
Luminance0.0134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2007 #080720
analogous
#201407 #1F2007 #122007
triadic
#1F2007 #071F20 #20071F
tetradic
#1F2007 #072014 #080720 #200712
square
#1F2007 #072014 #080720 #200712
split-complementary
#1F2007 #071220 #140720
monochromatic
#181905 #181905 #1F2007 #505212 #80841D

Accessibility & contrast

On white

16.56
#1F2007 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2007
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2007#FFFFFF#000000##FFFFFF
##1F20071.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231E05
Deuteranopia (green-blind)
#231F08
Tritanopia (blue-blind)
#221E1B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f2007;
/* rgb */ color: rgb(31, 32, 7);
/* oklch */ color: oklch(23.6% 0.041 111.3);
Tailwind
colors: {
  custom: {
    50: '#5a5b4a',
    500: '#1f2007',
    950: '#000000',
  },
}
SCSS
$custom: #1f2007;
$custom-light: #5a5b4a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2007",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 7
  },
  "hsl": {
    "h": 62.4,
    "s": 64.103,
    "l": 7.647
  },
  "oklch": {
    "l": 0.23578,
    "c": 0.04102,
    "h": 111.3
  },
  "luminance": 0.0134
}

Semantic roles & 50–950 ramp

primary
#1F2007
secondary
#26245F
accent
#41E747
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040401
muted
#797977

Preview Lab

Preview with #1F2007

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

Preview Lab → · Contrast checker → · Palette generator →

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