#161878#161878

#161878 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.156 H 270.8°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#161878
RGBrgb(22, 24, 120)
HSLhsl(239, 69%, 28%)
HSVhsv(239, 82%, 47%)
CMYKcmyk(81.7%, 80%, 0%, 52.9%)
CIE-LABlab(16.40, 34.92, -53.84)
CIE-LCHlch(16.40, 64.18, 302.97°)
OKLaboklab(29.43% 0.0021 -0.1559)
OKLCHoklch(29.43% 0.156 270.8)
XYZxyz(4.0465, 2.1795, 17.9731)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161878 #787616
analogous
#164978 #161878 #451678
triadic
#161878 #781618 #187816
tetradic
#161878 #781649 #787616 #167845
square
#161878 #781649 #787616 #167845
split-complementary
#161878 #784516 #497816
monochromatic
#05051A #0D0E44 #161878 #1F22AC #2F33D9

Accessibility & contrast

On white

14.62
#161878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#161878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161878
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161878#FFFFFF#000000##FFFFFF
##1618781.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002476
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #161878;
/* rgb */ color: rgb(22, 24, 120);
/* oklch */ color: oklch(29.4% 0.156 270.8);
Tailwind
colors: {
  custom: {
    50: '#6756a0',
    500: '#161878',
    950: '#000000',
  },
}
SCSS
$custom: #161878;
$custom-light: #6756a0;
$custom-dark: #000000;
JSON
{
  "hex": "#161878",
  "rgb": {
    "r": 22,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 238.776,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29425,
    "c": 0.15593,
    "h": 270.8
  },
  "luminance": 0.0218
}

Semantic roles & 50–950 ramp

primary
#161878
secondary
#ADAB3C
accent
#E83CEC
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #161878

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

Preview Lab → · Contrast checker → · Palette generator →

#161878 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva