#18162A#18162A

#18162A is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.3% C 0.039 H 287.2°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#18162A
RGBrgb(24, 22, 42)
HSLhsl(246, 31%, 13%)
HSVhsv(246, 48%, 16%)
CMYKcmyk(42.9%, 47.6%, 0%, 83.5%)
CIE-LABlab(8.44, 7.12, -13.26)
CIE-LCHlch(8.44, 15.05, 298.23°)
OKLaboklab(21.35% 0.0115 -0.0371)
OKLCHoklch(21.35% 0.039 287.2)
XYZxyz(1.0814, 0.9351, 2.3136)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18162A #282A16
analogous
#161E2A #18162A #22162A
triadic
#18162A #2A1816 #162A18
tetradic
#18162A #2A161E #282A16 #162A22
square
#18162A #2A161E #282A16 #162A22
split-complementary
#18162A #2A2216 #1E2A16
monochromatic
#0B0B14 #0B0B14 #18162A #2F2B52 #46407A

Accessibility & contrast

On white

17.69
#18162A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#18162A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18162A
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18162A#FFFFFF#000000##FFFFFF
##18162A1.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10192B
Deuteranopia (green-blind)
#10182A
Tritanopia (blue-blind)
#131A1D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #18162a;
/* rgb */ color: rgb(24, 22, 42);
/* oklch */ color: oklch(21.3% 0.039 287.2);
Tailwind
colors: {
  custom: {
    50: '#555263',
    500: '#18162a',
    950: '#000000',
  },
}
SCSS
$custom: #18162a;
$custom-light: #555263;
$custom-dark: #000000;
JSON
{
  "hex": "#18162a",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 42
  },
  "hsl": {
    "h": 246,
    "s": 31.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21345,
    "c": 0.03888,
    "h": 287.2
  },
  "luminance": 0.00935
}

Semantic roles & 50–950 ramp

primary
#18162A
secondary
#5C5F3D
accent
#C760BD
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030205
muted
#787879

Preview Lab

Preview with #18162A

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

Preview Lab → · Contrast checker → · Palette generator →

#18162A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva