#181822#181822

#181822 is a very dark, near-neutral blue. Relative luminance 0.010; OKLCH L 21.4% C 0.020 H 284.6°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#181822
RGBrgb(24, 24, 34)
HSLhsl(240, 17%, 11%)
HSVhsv(240, 29%, 13%)
CMYKcmyk(29.4%, 29.4%, 0%, 86.7%)
CIE-LABlab(8.68, 2.90, -6.91)
CIE-LCHlch(8.68, 7.49, 292.74°)
OKLaboklab(21.38% 0.0049 -0.019)
OKLCHoklch(21.38% 0.02 284.6)
XYZxyz(0.9920, 0.9629, 1.6467)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181822 #222218
analogous
#181D22 #181822 #1D1822
triadic
#181822 #221818 #182218
tetradic
#181822 #22181D #222218 #18221D
square
#181822 #22181D #222218 #18221D
split-complementary
#181822 #221D18 #1D2218
monochromatic
#0D0D12 #0D0D12 #181822 #313146 #4B4B6A

Accessibility & contrast

On white

17.61
#181822 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#181822 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181822
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181822#FFFFFF#000000##FFFFFF
##1818221.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151922
Deuteranopia (green-blind)
#151922
Tritanopia (blue-blind)
#161A1B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #181822;
/* rgb */ color: rgb(24, 24, 34);
/* oklch */ color: oklch(21.4% 0.020 284.6);
Tailwind
colors: {
  custom: {
    50: '#54545d',
    500: '#181822',
    950: '#000000',
  },
}
SCSS
$custom: #181822;
$custom-light: #54545d;
$custom-dark: #000000;
JSON
{
  "hex": "#181822",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 34
  },
  "hsl": {
    "h": 240,
    "s": 17.241,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21383,
    "c": 0.01958,
    "h": 284.6
  },
  "luminance": 0.00963
}

Semantic roles & 50–950 ramp

primary
#181822
secondary
#545442
accent
#BA6EBA
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020204
muted
#787879

Preview Lab

Preview with #181822

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

Preview Lab → · Contrast checker → · Palette generator →

#181822 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva