#162871#162871

#162871 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.128 H 267.6°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#162871
RGBrgb(22, 40, 113)
HSLhsl(228, 67%, 26%)
HSVhsv(228, 81%, 44%)
CMYKcmyk(80.5%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.56, 21.65, -44.15)
CIE-LCHlch(19.56, 49.17, 296.13°)
OKLaboklab(31.49% -0.0055 -0.1276)
OKLCHoklch(31.49% 0.128 267.6)
XYZxyz(4.0693, 2.8800, 15.9610)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162871 #715F16
analogous
#165671 #162871 #321671
triadic
#162871 #711628 #287116
tetradic
#162871 #711656 #715F16 #167132
square
#162871 #711656 #715F16 #167132
split-complementary
#162871 #713216 #567116
monochromatic
#05091A #0C163E #162871 #203AA4 #2C4DD6

Accessibility & contrast

On white

13.32
#162871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#162871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162871
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162871#FFFFFF#000000##FFFFFF
##1628711.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162871;
/* rgb */ color: rgb(22, 40, 113);
/* oklch */ color: oklch(31.5% 0.128 267.6);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#162871',
    950: '#000000',
  },
}
SCSS
$custom: #162871;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#162871",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 228.132,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31485,
    "c": 0.12776,
    "h": 267.6
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#162871
secondary
#A7923C
accent
#C83EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162871

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

Preview Lab → · Contrast checker → · Palette generator →

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