#16178D#16178D

#16178D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.183 H 269.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#16178D
RGBrgb(22, 23, 141)
HSLhsl(239, 73%, 32%)
HSVhsv(239, 84%, 55%)
CMYKcmyk(84.4%, 83.7%, 0%, 44.7%)
CIE-LABlab(18.82, 42.62, -63.12)
CIE-LCHlch(18.82, 76.16, 304.03°)
OKLaboklab(31.87% -0.0019 -0.1828)
OKLCHoklch(31.87% 0.183 269.4)
XYZxyz(5.4434, 2.7058, 25.4295)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16178D #8D8C16
analogous
#16538D #16178D #51168D
triadic
#16178D #8D1617 #178D16
tetradic
#16178D #8D1653 #8D8C16 #168D51
square
#16178D #8D1653 #8D8C16 #168D51
split-complementary
#16178D #8D5116 #538D16
monochromatic
#050623 #0E0E58 #16178D #1E20C2 #3D3EE1

Accessibility & contrast

On white

13.63
#16178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#16178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #16178D
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16178D#FFFFFF#000000##FFFFFF
##16178D1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00278B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #16178d;
/* rgb */ color: rgb(22, 23, 141);
/* oklch */ color: oklch(31.9% 0.183 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d57b0',
    500: '#16178d',
    950: '#000000',
  },
}
SCSS
$custom: #16178d;
$custom-light: #6d57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#16178d",
  "rgb": {
    "r": 22,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 239.496,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.31874,
    "c": 0.18279,
    "h": 269.4
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#16178D
secondary
#C1BF3E
accent
#EE38F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #16178D

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

Preview Lab → · Contrast checker → · Palette generator →

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