#1F2102#1F2102

#1F2102 is a very dark, muted yellow. Relative luminance 0.014; OKLCH L 23.8% C 0.050 H 113.1°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#1F2102
RGBrgb(31, 33, 2)
HSLhsl(64, 89%, 7%)
HSVhsv(64, 94%, 13%)
CMYKcmyk(6.1%, 0%, 93.9%, 87.1%)
CIE-LABlab(11.85, -6.25, 16.63)
CIE-LCHlch(11.85, 17.76, 110.61°)
OKLaboklab(23.79% -0.0195 0.0458)
OKLCHoklch(23.79% 0.05 113.1)
XYZxyz(1.1199, 1.3834, 0.2655)
Luminance0.0138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2102 #040221
analogous
#211402 #1F2102 #102102
triadic
#1F2102 #021F21 #21021F
tetradic
#1F2102 #022114 #040221 #210210
square
#1F2102 #022114 #040221 #210210
split-complementary
#1F2102 #021021 #140221
monochromatic
#1B1D02 #1B1D02 #1F2102 #555B05 #8B9409

Accessibility & contrast

On white

16.45
#1F2102 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1F2102 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2102
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2102#FFFFFF#000000##FFFFFF
##1F21021.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#241F00
Deuteranopia (green-blind)
#242004
Tritanopia (blue-blind)
#221E1B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f2102;
/* rgb */ color: rgb(31, 33, 2);
/* oklch */ color: oklch(23.8% 0.050 113.1);
Tailwind
colors: {
  custom: {
    50: '#5b5c47',
    500: '#1f2102',
    950: '#000000',
  },
}
SCSS
$custom: #1f2102;
$custom-light: #5b5c47;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2102",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 2
  },
  "hsl": {
    "h": 63.871,
    "s": 88.571,
    "l": 6.863
  },
  "oklch": {
    "l": 0.23792,
    "c": 0.04983,
    "h": 113.1
  },
  "luminance": 0.01383
}

Semantic roles & 50–950 ramp

primary
#1F2102
secondary
#1D1867
accent
#29FF37
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040400
muted
#797977

Preview Lab

Preview with #1F2102

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

Preview Lab → · Contrast checker → · Palette generator →

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