#162873#162873

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

Color values

HEX#162873
RGBrgb(22, 40, 115)
HSLhsl(228, 68%, 27%)
HSVhsv(228, 81%, 45%)
CMYKcmyk(80.9%, 65.2%, 0%, 54.9%)
CIE-LABlab(19.74, 22.47, -45.13)
CIE-LCHlch(19.74, 50.42, 296.46°)
OKLaboklab(31.68% -0.0055 -0.1305)
OKLCHoklch(31.68% 0.131 267.6)
XYZxyz(4.1831, 2.9255, 16.5605)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162873 #736116
analogous
#165773 #162873 #331673
triadic
#162873 #731628 #287316
tetradic
#162873 #731657 #736116 #167333
square
#162873 #731657 #736116 #167333
split-complementary
#162873 #733316 #577316
monochromatic
#05091A #0C1640 #162873 #203AA6 #2D4ED7

Accessibility & contrast

On white

13.25
#162873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162873
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162873#FFFFFF#000000##FFFFFF
##1628731.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162873;
/* rgb */ color: rgb(22, 40, 115);
/* oklch */ color: oklch(31.7% 0.131 267.6);
Tailwind
colors: {
  custom: {
    50: '#64619c',
    500: '#162873',
    950: '#000000',
  },
}
SCSS
$custom: #162873;
$custom-light: #64619c;
$custom-dark: #000000;
JSON
{
  "hex": "#162873",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 228.387,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3168,
    "c": 0.13064,
    "h": 267.6
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#162873
secondary
#A9943C
accent
#C93DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162873

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

Preview Lab → · Contrast checker → · Palette generator →

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