#1F210C#1F210C

#1F210C is a very dark, muted yellow. Relative luminance 0.014; OKLCH L 24.0% C 0.036 H 113.6°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#1F210C
RGBrgb(31, 33, 12)
HSLhsl(66, 47%, 9%)
HSVhsv(66, 64%, 13%)
CMYKcmyk(6.1%, 0%, 63.6%, 87.1%)
CIE-LABlab(11.99, -5.05, 12.71)
CIE-LCHlch(11.99, 13.68, 111.65°)
OKLaboklab(23.96% -0.0144 0.0329)
OKLCHoklch(23.96% 0.036 113.6)
XYZxyz(1.1753, 1.4056, 0.5571)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F210C #0E0C21
analogous
#21190C #1F210C #15210C
triadic
#1F210C #0C1F21 #210C1F
tetradic
#1F210C #0C2119 #0E0C21 #210C15
square
#1F210C #0C2119 #0E0C21 #210C15
split-complementary
#1F210C #0C1521 #190C21
monochromatic
#151608 #151608 #1F210C #494E1C #737B2D

Accessibility & contrast

On white

16.39
#1F210C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F210C
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F210C#FFFFFF#000000##FFFFFF
##1F210C1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#241F0A
Deuteranopia (green-blind)
#24200D
Tritanopia (blue-blind)
#211F1C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f210c;
/* rgb */ color: rgb(31, 33, 12);
/* oklch */ color: oklch(24.0% 0.036 113.6);
Tailwind
colors: {
  custom: {
    50: '#5b5c4c',
    500: '#1f210c',
    950: '#000000',
  },
}
SCSS
$custom: #1f210c;
$custom-light: #5b5c4c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f210c",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 12
  },
  "hsl": {
    "h": 65.714,
    "s": 46.667,
    "l": 8.824
  },
  "oklch": {
    "l": 0.23958,
    "c": 0.03587,
    "h": 113.6
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#1F210C
secondary
#322E5B
accent
#51D65E
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040401
muted
#797977

Preview Lab

Preview with #1F210C

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

Preview Lab → · Contrast checker → · Palette generator →

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