#1F1518

A color in the Red, Pink family

#1f1518 is a color in the Red, Pink family: RGB(31, 21, 24), HSL(342°, 19%, 10%), CMYK(0%, 32%, 23%, 88%). Closest named color: midnightblue. Contrast is 17.82:1 on white and 1.18:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#1f1518
RGBrgb(31 21 24)
RGB (legacy)rgb(31, 21, 24)
RGB %rgb(12% 8% 9%)
HSLhsl(342 19% 10%)
HSV / HSBhsv(342, 32%, 12%)
HWBhwb(342 8% 88%)
CMYKcmyk(0%, 32%, 23%, 88%)
CIELAB (D50)lab(8.11 5.73 -0.06)
LCHlch(8.11 5.73 359.38)
OKLaboklab(0.2097 0.0172 -0.0003)
OKLCHoklch(0.2097 0.0172 358.92)
Decimal2037016

Properties

Color ToneRed, Pink
Closest named colormidnightblue ΔE 16.4
Closest web-safe color#330000
Hue342°
Saturation (HSL / HSV)19% / 32%
Lightness (HSL)10%
Brightness or Value (HSV)12%
Luminance (Rec.601 / Rec.709)10% / 9%
Relative luminance (WCAG)0.0089
Red / Green / Blue31 / 21 / 24

WCAG 2.2 Contrast Ratio

On White (#ffffff)
17.82:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.18:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 104.6 / 0 · As background with white / black text: Lc -106.8 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #1f1518;
  --color-brand-oklch: oklch(20.97% 0.0172 358.92);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(31 21 24 / 50%); }
/* Tailwind CSS */
<div class="bg-[#1f1518] text-[#1f1518] border-[#1f1518]">