#18164D#18164D

#18164D is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.4% C 0.098 H 277.9°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#18164D
RGBrgb(24, 22, 77)
HSLhsl(242, 56%, 19%)
HSVhsv(242, 71%, 30%)
CMYKcmyk(68.8%, 71.4%, 0%, 69.8%)
CIE-LABlab(11.30, 20.42, -33.68)
CIE-LCHlch(11.30, 39.39, 301.23°)
OKLaboklab(24.38% 0.0134 -0.097)
OKLCHoklch(24.38% 0.098 277.9)
XYZxyz(2.0027, 1.3037, 7.1658)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18164D #4B4D16
analogous
#16304D #18164D #34164D
triadic
#18164D #4D1816 #164D18
tetradic
#18164D #4D1630 #4B4D16 #164D34
square
#18164D #4D1630 #4B4D16 #164D34
split-complementary
#18164D #4D3416 #304D16
monochromatic
#070718 #09081D #18164D #27247D #3631AC

Accessibility & contrast

On white

16.66
#18164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#18164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18164D
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18164D#FFFFFF#000000##FFFFFF
##18164D1.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001C4C
Tritanopia (blue-blind)
#00242F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #18164d;
/* rgb */ color: rgb(24, 22, 77);
/* oklch */ color: oklch(24.4% 0.098 277.9);
Tailwind
colors: {
  custom: {
    50: '#5c537f',
    500: '#18164d',
    950: '#000000',
  },
}
SCSS
$custom: #18164d;
$custom-light: #5c537f;
$custom-dark: #000000;
JSON
{
  "hex": "#18164d",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 242.182,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.24384,
    "c": 0.09796,
    "h": 277.9
  },
  "luminance": 0.01304
}

Semantic roles & 50–950 ramp

primary
#18164D
secondary
#82853A
accent
#DF49D9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18164D

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

Preview Lab → · Contrast checker → · Palette generator →

#18164D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva