#162872#162872

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

Color values

HEX#162872
RGBrgb(22, 40, 114)
HSLhsl(228, 68%, 27%)
HSVhsv(228, 81%, 45%)
CMYKcmyk(80.7%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.65, 22.06, -44.64)
CIE-LCHlch(19.65, 49.80, 296.30°)
OKLaboklab(31.58% -0.0055 -0.1291)
OKLCHoklch(31.58% 0.129 267.6)
XYZxyz(4.1259, 2.9026, 16.2591)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162872 #726016
analogous
#165672 #162872 #321672
triadic
#162872 #721628 #287216
tetradic
#162872 #721656 #726016 #167232
square
#162872 #721656 #726016 #167232
split-complementary
#162872 #723216 #567216
monochromatic
#05091A #0C163F #162872 #203AA5 #2C4DD6

Accessibility & contrast

On white

13.29
#162872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162872
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162872#FFFFFF#000000##FFFFFF
##1628721.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162872;
/* rgb */ color: rgb(22, 40, 114);
/* oklch */ color: oklch(31.6% 0.129 267.6);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#162872',
    950: '#000000',
  },
}
SCSS
$custom: #162872;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#162872",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 228.261,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31582,
    "c": 0.1292,
    "h": 267.6
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #162872

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

Preview Lab → · Contrast checker → · Palette generator →

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