#1F2201#1F2201

#1F2201 is a very dark, muted yellow. Relative luminance 0.014; OKLCH L 24.1% C 0.053 H 114.6°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#1F2201
RGBrgb(31, 34, 1)
HSLhsl(65, 94%, 7%)
HSVhsv(65, 97%, 13%)
CMYKcmyk(8.8%, 0%, 97.1%, 86.7%)
CIE-LABlab(12.21, -7.04, 17.53)
CIE-LCHlch(12.21, 18.89, 111.88°)
OKLaboklab(24.08% -0.0219 0.048)
OKLCHoklch(24.08% 0.053 114.6)
XYZxyz(1.1426, 1.4376, 0.2460)
Luminance0.0144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2201 #040122
analogous
#221501 #1F2201 #0F2201
triadic
#1F2201 #011F22 #22011F
tetradic
#1F2201 #012215 #040122 #22010F
square
#1F2201 #012215 #040122 #22010F
split-complementary
#1F2201 #010F22 #150122
monochromatic
#1B1E01 #1B1E01 #1F2201 #555D03 #8B9904

Accessibility & contrast

On white

16.31
#1F2201 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1F2201 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2201
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2201#FFFFFF#000000##FFFFFF
##1F22011.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252000
Deuteranopia (green-blind)
#252003
Tritanopia (blue-blind)
#221F1B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1f2201;
/* rgb */ color: rgb(31, 34, 1);
/* oklch */ color: oklch(24.1% 0.053 114.6);
Tailwind
colors: {
  custom: {
    50: '#5b5d47',
    500: '#1f2201',
    950: '#000000',
  },
}
SCSS
$custom: #1f2201;
$custom-light: #5b5d47;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2201",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 1
  },
  "hsl": {
    "h": 65.455,
    "s": 94.286,
    "l": 6.863
  },
  "oklch": {
    "l": 0.24075,
    "c": 0.05274,
    "h": 114.6
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#1F2201
secondary
#1D1669
accent
#29FF3C
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040400
muted
#797977

Preview Lab

Preview with #1F2201

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

Preview Lab → · Contrast checker → · Palette generator →

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