#16178B#16178B

#16178B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.180 H 269.5°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#16178B
RGBrgb(22, 23, 139)
HSLhsl(239, 73%, 32%)
HSVhsv(239, 84%, 55%)
CMYKcmyk(84.2%, 83.5%, 0%, 45.5%)
CIE-LABlab(18.57, 41.96, -62.30)
CIE-LCHlch(18.57, 75.11, 303.97°)
OKLaboklab(31.62% -0.0015 -0.1804)
OKLCHoklch(31.62% 0.18 269.5)
XYZxyz(5.2959, 2.6468, 24.6529)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16178B #8B8A16
analogous
#16528B #16178B #50168B
triadic
#16178B #8B1617 #178B16
tetradic
#16178B #8B1652 #8B8A16 #168B50
square
#16178B #8B1652 #8B8A16 #168B50
split-complementary
#16178B #8B5016 #528B16
monochromatic
#050621 #0E0E56 #16178B #1E20C0 #3B3DE0

Accessibility & contrast

On white

13.73
#16178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#16178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #16178B
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16178B#FFFFFF#000000##FFFFFF
##16178B1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002789
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #16178b;
/* rgb */ color: rgb(22, 23, 139);
/* oklch */ color: oklch(31.6% 0.180 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d57ae',
    500: '#16178b',
    950: '#000000',
  },
}
SCSS
$custom: #16178b;
$custom-light: #6d57ae;
$custom-dark: #000000;
JSON
{
  "hex": "#16178b",
  "rgb": {
    "r": 22,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 239.487,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31624,
    "c": 0.18039,
    "h": 269.5
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#16178B
secondary
#BFBE3E
accent
#EE38EF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080310
muted
#7B787F

Preview Lab

Preview with #16178B

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

Preview Lab → · Contrast checker → · Palette generator →

#16178B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva