#16178C#16178C

#16178C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.182 H 269.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#16178C
RGBrgb(22, 23, 140)
HSLhsl(239, 73%, 32%)
HSVhsv(239, 84%, 55%)
CMYKcmyk(84.3%, 83.6%, 0%, 45.1%)
CIE-LABlab(18.70, 42.29, -62.71)
CIE-LCHlch(18.70, 75.64, 304.00°)
OKLaboklab(31.75% -0.0017 -0.1816)
OKLCHoklch(31.75% 0.182 269.5)
XYZxyz(5.3693, 2.6762, 25.0394)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16178C #8C8B16
analogous
#16528C #16178C #50168C
triadic
#16178C #8C1617 #178C16
tetradic
#16178C #8C1652 #8C8B16 #168C50
square
#16178C #8C1652 #8C8B16 #168C50
split-complementary
#16178C #8C5016 #528C16
monochromatic
#050622 #0E0E57 #16178C #1E20C1 #3C3DE0

Accessibility & contrast

On white

13.68
#16178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #16178C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16178C#FFFFFF#000000##FFFFFF
##16178C1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #16178c;
/* rgb */ color: rgb(22, 23, 140);
/* oklch */ color: oklch(31.7% 0.182 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d57af',
    500: '#16178c',
    950: '#000000',
  },
}
SCSS
$custom: #16178c;
$custom-light: #6d57af;
$custom-dark: #000000;
JSON
{
  "hex": "#16178c",
  "rgb": {
    "r": 22,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 239.492,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31749,
    "c": 0.18159,
    "h": 269.5
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#16178C
secondary
#C0BF3E
accent
#EE38F0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #16178C

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

Preview Lab → · Contrast checker → · Palette generator →

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