#161771#161771

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

Color values

HEX#161771
RGBrgb(22, 23, 113)
HSLhsl(239, 67%, 26%)
HSVhsv(239, 81%, 44%)
CMYKcmyk(80.5%, 79.6%, 0%, 55.7%)
CIE-LABlab(15.36, 33.02, -51.06)
CIE-LCHlch(15.36, 60.81, 302.89°)
OKLaboklab(28.44% 0.0039 -0.1478)
OKLCHoklch(28.44% 0.148 271.5)
XYZxyz(3.6169, 1.9752, 15.8102)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161771 #717016
analogous
#164571 #161771 #431671
triadic
#161771 #711617 #177116
tetradic
#161771 #711645 #717016 #167143
square
#161771 #711645 #717016 #167143
split-complementary
#161771 #714316 #457116
monochromatic
#05051A #0C0D3E #161771 #2021A4 #2C2DD6

Accessibility & contrast

On white

15.05
#161771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161771
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161771#FFFFFF#000000##FFFFFF
##1617711.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #161771;
/* rgb */ color: rgb(22, 23, 113);
/* oklch */ color: oklch(28.4% 0.148 271.5);
Tailwind
colors: {
  custom: {
    50: '#65559b',
    500: '#161771',
    950: '#000000',
  },
}
SCSS
$custom: #161771;
$custom-light: #65559b;
$custom-dark: #000000;
JSON
{
  "hex": "#161771",
  "rgb": {
    "r": 22,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 239.341,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28441,
    "c": 0.14787,
    "h": 271.5
  },
  "luminance": 0.01976
}

Semantic roles & 50–950 ramp

primary
#161771
secondary
#A7A63C
accent
#E83EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #161771

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

Preview Lab → · Contrast checker → · Palette generator →

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