#18164E#18164E

#18164E is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.5% C 0.099 H 277.7°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#18164E
RGBrgb(24, 22, 78)
HSLhsl(242, 56%, 20%)
HSVhsv(242, 72%, 31%)
CMYKcmyk(69.2%, 71.8%, 0%, 69.4%)
CIE-LABlab(11.40, 20.81, -34.20)
CIE-LCHlch(11.40, 40.04, 301.32°)
OKLaboklab(24.49% 0.0133 -0.0986)
OKLCHoklch(24.49% 0.099 277.7)
XYZxyz(2.0383, 1.3179, 7.3532)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18164E #4C4E16
analogous
#16304E #18164E #34164E
triadic
#18164E #4E1816 #164E18
tetradic
#18164E #4E1630 #4C4E16 #164E34
square
#18164E #4E1630 #4C4E16 #164E34
split-complementary
#18164E #4E3416 #304E16
monochromatic
#070718 #09091E #18164E #27237E #3531AD

Accessibility & contrast

On white

16.62
#18164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18164E
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18164E#FFFFFF#000000##FFFFFF
##18164E1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18164e;
/* rgb */ color: rgb(24, 22, 78);
/* oklch */ color: oklch(24.5% 0.099 277.7);
Tailwind
colors: {
  custom: {
    50: '#5d5380',
    500: '#18164e',
    950: '#000000',
  },
}
SCSS
$custom: #18164e;
$custom-light: #5d5380;
$custom-dark: #000000;
JSON
{
  "hex": "#18164e",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 242.143,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24486,
    "c": 0.09947,
    "h": 277.7
  },
  "luminance": 0.01318
}

Semantic roles & 50–950 ramp

primary
#18164E
secondary
#83853A
accent
#DF49DA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18164E

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

Preview Lab → · Contrast checker → · Palette generator →

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