#181A22#181A22

#181A22 is a very dark, near-neutral blue. Relative luminance 0.010; OKLCH L 21.9% C 0.016 H 274.0°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#181A22
RGBrgb(24, 26, 34)
HSLhsl(228, 17%, 11%)
HSVhsv(228, 29%, 13%)
CMYKcmyk(29.4%, 23.5%, 0%, 86.7%)
CIE-LABlab(9.39, 1.38, -5.83)
CIE-LCHlch(9.39, 5.99, 283.34°)
OKLaboklab(21.94% 0.0011 -0.0159)
OKLCHoklch(21.94% 0.016 274)
XYZxyz(1.0347, 1.0484, 1.6609)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A22 #222018
analogous
#181F22 #181A22 #1B1822
triadic
#181A22 #22181A #1A2218
tetradic
#181A22 #22181F #222018 #18221B
square
#181A22 #22181F #222018 #18221B
split-complementary
#181A22 #221B18 #1F2218
monochromatic
#0D0E12 #0D0E12 #181A22 #313546 #4B516A

Accessibility & contrast

On white

17.36
#181A22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#181A22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A22
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A22#FFFFFF#000000##FFFFFF
##181A221.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181B22
Deuteranopia (green-blind)
#171A22
Tritanopia (blue-blind)
#161B1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #181a22;
/* rgb */ color: rgb(24, 26, 34);
/* oklch */ color: oklch(21.9% 0.016 274.0);
Tailwind
colors: {
  custom: {
    50: '#54565d',
    500: '#181a22',
    950: '#000000',
  },
}
SCSS
$custom: #181a22;
$custom-light: #54565d;
$custom-dark: #000000;
JSON
{
  "hex": "#181a22",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 34
  },
  "hsl": {
    "h": 228,
    "s": 17.241,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21936,
    "c": 0.01597,
    "h": 274
  },
  "luminance": 0.01048
}

Semantic roles & 50–950 ramp

primary
#181A22
secondary
#545042
accent
#AB6EBA
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#020304
muted
#787879

Preview Lab

Preview with #181A22

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

Preview Lab → · Contrast checker → · Palette generator →

#181A22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva