#162156#162156

#162156 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.097 H 270.0°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#162156
RGBrgb(22, 33, 86)
HSLhsl(230, 59%, 21%)
HSVhsv(230, 74%, 34%)
CMYKcmyk(74.4%, 61.6%, 0%, 66.3%)
CIE-LABlab(15.12, 15.64, -33.60)
CIE-LCHlch(15.12, 37.07, 294.96°)
OKLaboklab(27.42% -0.0001 -0.0968)
OKLCHoklch(27.42% 0.097 270)
XYZxyz(2.5539, 1.9299, 9.0402)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162156 #564B16
analogous
#164156 #162156 #2B1656
triadic
#162156 #561621 #215616
tetradic
#162156 #561641 #564B16 #16562B
square
#162156 #561641 #564B16 #16562B
split-complementary
#162156 #562B16 #415616
monochromatic
#060918 #0A0E25 #162156 #223487 #2F46B7

Accessibility & contrast

On white

15.15
#162156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#162156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162156
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162156#FFFFFF#000000##FFFFFF
##1621561.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #162156;
/* rgb */ color: rgb(22, 33, 86);
/* oklch */ color: oklch(27.4% 0.097 270.0);
Tailwind
colors: {
  custom: {
    50: '#5d5b86',
    500: '#162156',
    950: '#000000',
  },
}
SCSS
$custom: #162156;
$custom-light: #5d5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#162156",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 229.688,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27421,
    "c": 0.09677,
    "h": 270
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#162156
secondary
#8D7F3A
accent
#C745E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #162156

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

Preview Lab → · Contrast checker → · Palette generator →

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