#161872#161872

#161872 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.148 H 271.3°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#161872
RGBrgb(22, 24, 114)
HSLhsl(239, 68%, 27%)
HSVhsv(239, 81%, 45%)
CMYKcmyk(80.7%, 78.9%, 0%, 55.3%)
CIE-LABlab(15.69, 32.78, -51.16)
CIE-LCHlch(15.69, 60.76, 302.65°)
OKLaboklab(28.71% 0.0033 -0.1481)
OKLCHoklch(28.71% 0.148 271.3)
XYZxyz(3.6937, 2.0383, 16.1151)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161872 #727016
analogous
#164672 #161872 #421672
triadic
#161872 #721618 #187216
tetradic
#161872 #721646 #727016 #167242
square
#161872 #721646 #727016 #167242
split-complementary
#161872 #724216 #467216
monochromatic
#05051A #0C0D3F #161872 #2023A5 #2C30D6

Accessibility & contrast

On white

14.92
#161872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#161872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161872
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161872#FFFFFF#000000##FFFFFF
##1618721.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #161872;
/* rgb */ color: rgb(22, 24, 114);
/* oklch */ color: oklch(28.7% 0.148 271.3);
Tailwind
colors: {
  custom: {
    50: '#66569c',
    500: '#161872',
    950: '#000000',
  },
}
SCSS
$custom: #161872;
$custom-light: #66569c;
$custom-dark: #000000;
JSON
{
  "hex": "#161872",
  "rgb": {
    "r": 22,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 238.696,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2871,
    "c": 0.14817,
    "h": 271.3
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#161872
secondary
#A8A53C
accent
#E73DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #161872

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

Preview Lab → · Contrast checker → · Palette generator →

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