#1A181C#1A181C

#1A181C is a very dark, near-neutral grey. Relative luminance 0.010; OKLCH L 21.3% C 0.008 H 308.0°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#1A181C
RGBrgb(26, 24, 28)
HSLhsl(270, 8%, 10%)
HSVhsv(270, 14%, 11%)
CMYKcmyk(7.1%, 14.3%, 0%, 89%)
CIE-LABlab(8.63, 2.02, -2.45)
CIE-LCHlch(8.63, 3.17, 309.52°)
OKLaboklab(21.31% 0.0051 -0.0065)
OKLCHoklch(21.31% 0.008 308)
XYZxyz(0.9622, 0.9567, 1.2324)
Luminance0.0096 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A181C #1A1C18
analogous
#18181C #1A181C #1C181C
triadic
#1A181C #1C1A18 #181C1A
tetradic
#1A181C #1C1818 #1A1C18 #181C1C
square
#1A181C #1C1818 #1A1C18 #181C1C
split-complementary
#1A181C #1C1C18 #181C18
monochromatic
#0F0E10 #0F0E10 #1A181C #39343D #57505E

Accessibility & contrast

On white

17.63
#1A181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1A181C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A181C
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A181C#FFFFFF#000000##FFFFFF
##1A181C1.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17191C
Deuteranopia (green-blind)
#18191C
Tritanopia (blue-blind)
#1A1819
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1a181c;
/* rgb */ color: rgb(26, 24, 28);
/* oklch */ color: oklch(21.3% 0.008 308.0);
Tailwind
colors: {
  custom: {
    50: '#565457',
    500: '#1a181c',
    950: '#000000',
  },
}
SCSS
$custom: #1a181c;
$custom-light: #565457;
$custom-dark: #000000;
JSON
{
  "hex": "#1a181c",
  "rgb": {
    "r": 26,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 270,
    "s": 7.692,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21305,
    "c": 0.00831,
    "h": 308
  },
  "luminance": 0.00957
}

Semantic roles & 50–950 ramp

primary
#1A181C
secondary
#484C44
accent
#B17794
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#030203
muted
#787878

Preview Lab

Preview with #1A181C

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

Preview Lab → · Contrast checker → · Palette generator →

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