#161971#161971

#161971 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.146 H 271.2°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#161971
RGBrgb(22, 25, 113)
HSLhsl(238, 67%, 26%)
HSVhsv(238, 81%, 44%)
CMYKcmyk(80.5%, 77.9%, 0%, 55.7%)
CIE-LABlab(15.79, 31.80, -50.35)
CIE-LCHlch(15.79, 59.55, 302.28°)
OKLaboklab(28.75% 0.0031 -0.1458)
OKLCHoklch(28.75% 0.146 271.2)
XYZxyz(3.6581, 2.0577, 15.8240)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161971 #716E16
analogous
#164771 #161971 #411671
triadic
#161971 #711619 #197116
tetradic
#161971 #711647 #716E16 #167141
square
#161971 #711647 #716E16 #167141
split-complementary
#161971 #714116 #477116
monochromatic
#05061A #0C0E3E #161971 #2024A4 #2C31D6

Accessibility & contrast

On white

14.88
#161971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161971
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161971#FFFFFF#000000##FFFFFF
##1619711.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #161971;
/* rgb */ color: rgb(22, 25, 113);
/* oklch */ color: oklch(28.7% 0.146 271.2);
Tailwind
colors: {
  custom: {
    50: '#65579b',
    500: '#161971',
    950: '#000000',
  },
}
SCSS
$custom: #161971;
$custom-light: #65579b;
$custom-dark: #000000;
JSON
{
  "hex": "#161971",
  "rgb": {
    "r": 22,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 238.022,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28746,
    "c": 0.1458,
    "h": 271.2
  },
  "luminance": 0.02058
}

Semantic roles & 50–950 ramp

primary
#161971
secondary
#A7A33C
accent
#E53EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #161971

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

Preview Lab → · Contrast checker → · Palette generator →

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