#18164C#18164C

#18164C is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.096 H 278.1°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#18164C
RGBrgb(24, 22, 76)
HSLhsl(242, 55%, 19%)
HSVhsv(242, 71%, 30%)
CMYKcmyk(68.4%, 71.1%, 0%, 70.2%)
CIE-LABlab(11.20, 20.04, -33.15)
CIE-LCHlch(11.20, 38.73, 301.15°)
OKLaboklab(24.28% 0.0135 -0.0955)
OKLCHoklch(24.28% 0.096 278.1)
XYZxyz(1.9677, 1.2897, 6.9813)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18164C #4A4C16
analogous
#162F4C #18164C #33164C
triadic
#18164C #4C1816 #164C18
tetradic
#18164C #4C162F #4A4C16 #164C33
square
#18164C #4C162F #4A4C16 #164C33
split-complementary
#18164C #4C3316 #2F4C16
monochromatic
#070718 #09081D #18164C #27247B #3631AB

Accessibility & contrast

On white

16.69
#18164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18164C
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18164C#FFFFFF#000000##FFFFFF
##18164C1.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18164c;
/* rgb */ color: rgb(24, 22, 76);
/* oklch */ color: oklch(24.3% 0.096 278.1);
Tailwind
colors: {
  custom: {
    50: '#5c537f',
    500: '#18164c',
    950: '#000000',
  },
}
SCSS
$custom: #18164c;
$custom-light: #5c537f;
$custom-dark: #000000;
JSON
{
  "hex": "#18164c",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 242.222,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.24282,
    "c": 0.09643,
    "h": 278.1
  },
  "luminance": 0.0129
}

Semantic roles & 50–950 ramp

primary
#18164C
secondary
#81843A
accent
#DE49D9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18164C

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

Preview Lab → · Contrast checker → · Palette generator →

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