#1F2202#1F2202

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

Color values

HEX#1F2202
RGBrgb(31, 34, 2)
HSLhsl(66, 89%, 7%)
HSVhsv(66, 94%, 13%)
CMYKcmyk(8.8%, 0%, 94.1%, 86.7%)
CIE-LABlab(12.22, -6.92, 17.14)
CIE-LCHlch(12.22, 18.48, 111.97°)
OKLaboklab(24.09% -0.0214 0.0466)
OKLCHoklch(24.09% 0.051 114.6)
XYZxyz(1.1481, 1.4398, 0.2748)
Luminance0.0144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2202 #050222
analogous
#221502 #1F2202 #0F2202
triadic
#1F2202 #021F22 #22021F
tetradic
#1F2202 #022215 #050222 #22020F
square
#1F2202 #022215 #050222 #22020F
split-complementary
#1F2202 #020F22 #150222
monochromatic
#1A1D02 #1A1D02 #1F2202 #545C05 #889609

Accessibility & contrast

On white

16.30
#1F2202 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2202
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2202#FFFFFF#000000##FFFFFF
##1F22021.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2202;
/* rgb */ color: rgb(31, 34, 2);
/* oklch */ color: oklch(24.1% 0.051 114.6);
Tailwind
colors: {
  custom: {
    50: '#5b5c47',
    500: '#1f2202',
    950: '#000000',
  },
}
SCSS
$custom: #1f2202;
$custom-light: #5b5c47;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2202",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 2
  },
  "hsl": {
    "h": 65.625,
    "s": 88.889,
    "l": 7.059
  },
  "oklch": {
    "l": 0.24091,
    "c": 0.05122,
    "h": 114.6
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#1F2202
secondary
#201868
accent
#29FF3D
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040400
muted
#797977

Preview Lab

Preview with #1F2202

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

Preview Lab → · Contrast checker → · Palette generator →

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