#161871#161871

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

Color values

HEX#161871
RGBrgb(22, 24, 113)
HSLhsl(239, 67%, 26%)
HSVhsv(239, 81%, 44%)
CMYKcmyk(80.5%, 78.8%, 0%, 55.7%)
CIE-LABlab(15.57, 32.42, -50.71)
CIE-LCHlch(15.57, 60.18, 302.59°)
OKLaboklab(28.59% 0.0035 -0.1468)
OKLCHoklch(28.59% 0.147 271.4)
XYZxyz(3.6371, 2.0157, 15.8170)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161871 #716F16
analogous
#164671 #161871 #421671
triadic
#161871 #711618 #187116
tetradic
#161871 #711646 #716F16 #167142
square
#161871 #711646 #716F16 #167142
split-complementary
#161871 #714216 #467116
monochromatic
#05051A #0C0D3E #161871 #2023A4 #2C2FD6

Accessibility & contrast

On white

14.97
#161871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161871
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161871#FFFFFF#000000##FFFFFF
##1618711.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #161871;
/* rgb */ color: rgb(22, 24, 113);
/* oklch */ color: oklch(28.6% 0.147 271.4);
Tailwind
colors: {
  custom: {
    50: '#65569b',
    500: '#161871',
    950: '#000000',
  },
}
SCSS
$custom: #161871;
$custom-light: #65569b;
$custom-dark: #000000;
JSON
{
  "hex": "#161871",
  "rgb": {
    "r": 22,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 238.681,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28592,
    "c": 0.14685,
    "h": 271.4
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#161871
secondary
#A7A53C
accent
#E63EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #161871

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

Preview Lab → · Contrast checker → · Palette generator →

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