#161772#161772

#161772 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.149 H 271.4°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#161772
RGBrgb(22, 23, 114)
HSLhsl(239, 68%, 27%)
HSVhsv(239, 81%, 45%)
CMYKcmyk(80.7%, 79.8%, 0%, 55.3%)
CIE-LABlab(15.48, 33.38, -51.51)
CIE-LCHlch(15.48, 61.38, 302.94°)
OKLaboklab(28.56% 0.0037 -0.1491)
OKLCHoklch(28.56% 0.149 271.4)
XYZxyz(3.6735, 1.9979, 16.1083)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161772 #727116
analogous
#164572 #161772 #431672
triadic
#161772 #721617 #177216
tetradic
#161772 #721645 #727116 #167243
square
#161772 #721645 #727116 #167243
split-complementary
#161772 #724316 #457216
monochromatic
#05051A #0C0D3F #161772 #2021A5 #2C2ED6

Accessibility & contrast

On white

15.00
#161772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#161772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161772
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161772#FFFFFF#000000##FFFFFF
##1617721.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #161772;
/* rgb */ color: rgb(22, 23, 114);
/* oklch */ color: oklch(28.6% 0.149 271.4);
Tailwind
colors: {
  custom: {
    50: '#66559c',
    500: '#161772',
    950: '#000000',
  },
}
SCSS
$custom: #161772;
$custom-light: #66559c;
$custom-dark: #000000;
JSON
{
  "hex": "#161772",
  "rgb": {
    "r": 22,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 239.348,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28561,
    "c": 0.14918,
    "h": 271.4
  },
  "luminance": 0.01998
}

Semantic roles & 50–950 ramp

primary
#161772
secondary
#A8A73C
accent
#E93DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #161772

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

Preview Lab → · Contrast checker → · Palette generator →

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