#18164F#18164F

#18164F is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.6% C 0.101 H 277.5°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#18164F
RGBrgb(24, 22, 79)
HSLhsl(242, 56%, 20%)
HSVhsv(242, 72%, 31%)
CMYKcmyk(69.6%, 72.2%, 0%, 69%)
CIE-LABlab(11.50, 21.19, -34.73)
CIE-LCHlch(11.50, 40.68, 301.39°)
OKLaboklab(24.59% 0.0132 -0.1001)
OKLCHoklch(24.59% 0.101 277.5)
XYZxyz(2.0744, 1.3324, 7.5435)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18164F #4D4F16
analogous
#16314F #18164F #34164F
triadic
#18164F #4F1816 #164F18
tetradic
#18164F #4F1631 #4D4F16 #164F34
square
#18164F #4F1631 #4D4F16 #164F34
split-complementary
#18164F #4F3416 #314F16
monochromatic
#070718 #09091F #18164F #27237F #3531AF

Accessibility & contrast

On white

16.58
#18164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#18164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18164F
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18164F#FFFFFF#000000##FFFFFF
##18164F1.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #18164f;
/* rgb */ color: rgb(24, 22, 79);
/* oklch */ color: oklch(24.6% 0.101 277.5);
Tailwind
colors: {
  custom: {
    50: '#5d5381',
    500: '#18164f',
    950: '#000000',
  },
}
SCSS
$custom: #18164f;
$custom-light: #5d5381;
$custom-dark: #000000;
JSON
{
  "hex": "#18164f",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 242.105,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2459,
    "c": 0.10099,
    "h": 277.5
  },
  "luminance": 0.01333
}

Semantic roles & 50–950 ramp

primary
#18164F
secondary
#84863A
accent
#E048DA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18164F

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

Preview Lab → · Contrast checker → · Palette generator →

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