#18162C#18162C

#18162C is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.5% C 0.043 H 286.4°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#18162C
RGBrgb(24, 22, 44)
HSLhsl(245, 33%, 13%)
HSVhsv(245, 50%, 17%)
CMYKcmyk(45.5%, 50%, 0%, 82.7%)
CIE-LABlab(8.57, 7.83, -14.54)
CIE-LCHlch(8.57, 16.51, 298.29°)
OKLaboklab(21.48% 0.012 -0.0409)
OKLCHoklch(21.48% 0.043 286.4)
XYZxyz(1.1181, 0.9498, 2.5068)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18162C #2A2C16
analogous
#161F2C #18162C #23162C
triadic
#18162C #2C1816 #162C18
tetradic
#18162C #2C161F #2A2C16 #162C23
square
#18162C #2C161F #2A2C16 #162C23
split-complementary
#18162C #2C2316 #1F2C16
monochromatic
#0B0A14 #0B0A14 #18162C #2E2A55 #453F7E

Accessibility & contrast

On white

17.65
#18162C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18162C
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18162C#FFFFFF#000000##FFFFFF
##18162C1.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192D
Deuteranopia (green-blind)
#0E182B
Tritanopia (blue-blind)
#131A1E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #18162c;
/* rgb */ color: rgb(24, 22, 44);
/* oklch */ color: oklch(21.5% 0.043 286.4);
Tailwind
colors: {
  custom: {
    50: '#565265',
    500: '#18162c',
    950: '#000000',
  },
}
SCSS
$custom: #18162c;
$custom-light: #565265;
$custom-dark: #000000;
JSON
{
  "hex": "#18162c",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 44
  },
  "hsl": {
    "h": 245.455,
    "s": 33.333,
    "l": 12.941
  },
  "oklch": {
    "l": 0.21483,
    "c": 0.04259,
    "h": 286.4
  },
  "luminance": 0.0095
}

Semantic roles & 50–950 ramp

primary
#18162C
secondary
#5E613C
accent
#C95EC0
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030205
muted
#78787A

Preview Lab

Preview with #18162C

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

Preview Lab → · Contrast checker → · Palette generator →

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