#1F2002#1F2002

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

Color values

HEX#1F2002
RGBrgb(31, 32, 2)
HSLhsl(62, 88%, 7%)
HSVhsv(62, 94%, 13%)
CMYKcmyk(3.1%, 0%, 93.8%, 87.5%)
CIE-LABlab(11.47, -5.58, 16.12)
CIE-LCHlch(11.47, 17.06, 109.10°)
OKLaboklab(23.49% -0.0177 0.0451)
OKLCHoklch(23.49% 0.048 111.4)
XYZxyz(1.0926, 1.3287, 0.2563)
Luminance0.0133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2002 #030220
analogous
#201202 #1F2002 #102002
triadic
#1F2002 #021F20 #20021F
tetradic
#1F2002 #022012 #030220 #200210
square
#1F2002 #022012 #030220 #200210
split-complementary
#1F2002 #021020 #120220
monochromatic
#1C1D02 #1C1D02 #1F2002 #575A06 #8F9309

Accessibility & contrast

On white

16.59
#1F2002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2002
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2002#FFFFFF#000000##FFFFFF
##1F20021.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231E00
Deuteranopia (green-blind)
#241F03
Tritanopia (blue-blind)
#221D1A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f2002;
/* rgb */ color: rgb(31, 32, 2);
/* oklch */ color: oklch(23.5% 0.048 111.4);
Tailwind
colors: {
  custom: {
    50: '#5a5b47',
    500: '#1f2002',
    950: '#000000',
  },
}
SCSS
$custom: #1f2002;
$custom-light: #5a5b47;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2002",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 2
  },
  "hsl": {
    "h": 62,
    "s": 88.235,
    "l": 6.667
  },
  "oklch": {
    "l": 0.23494,
    "c": 0.04848,
    "h": 111.4
  },
  "luminance": 0.01329
}

Semantic roles & 50–950 ramp

primary
#1F2002
secondary
#1B1866
accent
#29FE31
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040400
muted
#797977

Preview Lab

Preview with #1F2002

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

Preview Lab → · Contrast checker → · Palette generator →

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