#18162E#18162E

#18162E is a very dark, muted blue. Relative luminance 0.010; OKLCH L 21.6% C 0.046 H 285.6°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#18162E
RGBrgb(24, 22, 46)
HSLhsl(245, 35%, 13%)
HSVhsv(245, 52%, 18%)
CMYKcmyk(47.8%, 52.2%, 0%, 82%)
CIE-LABlab(8.70, 8.55, -15.81)
CIE-LCHlch(8.70, 17.97, 298.40°)
OKLaboklab(21.63% 0.0125 -0.0446)
OKLCHoklch(21.63% 0.046 285.6)
XYZxyz(1.1566, 0.9652, 2.7096)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18162E #2C2E16
analogous
#16202E #18162E #24162E
triadic
#18162E #2E1816 #162E18
tetradic
#18162E #2E1620 #2C2E16 #162E24
square
#18162E #2E1620 #2C2E16 #162E24
split-complementary
#18162E #2E2416 #202E16
monochromatic
#0B0A15 #0B0A15 #18162E #2E2A57 #433E81

Accessibility & contrast

On white

17.60
#18162E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18162E
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18162E#FFFFFF#000000##FFFFFF
##18162E1.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A2F
Deuteranopia (green-blind)
#0D182D
Tritanopia (blue-blind)
#121B1F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #18162e;
/* rgb */ color: rgb(24, 22, 46);
/* oklch */ color: oklch(21.6% 0.046 285.6);
Tailwind
colors: {
  custom: {
    50: '#565267',
    500: '#18162e',
    950: '#000000',
  },
}
SCSS
$custom: #18162e;
$custom-light: #565267;
$custom-dark: #000000;
JSON
{
  "hex": "#18162e",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 245,
    "s": 35.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21627,
    "c": 0.04627,
    "h": 285.6
  },
  "luminance": 0.00965
}

Semantic roles & 50–950 ramp

primary
#18162E
secondary
#60643C
accent
#CB5CC2
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030206
muted
#78787A

Preview Lab

Preview with #18162E

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

Preview Lab → · Contrast checker → · Palette generator →

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