#162456#162456

#162456 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.092 H 268.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#162456
RGBrgb(22, 36, 86)
HSLhsl(227, 59%, 21%)
HSVhsv(227, 74%, 34%)
CMYKcmyk(74.4%, 58.1%, 0%, 66.3%)
CIE-LABlab(16.02, 13.41, -32.13)
CIE-LCHlch(16.02, 34.82, 292.65°)
OKLaboklab(28.1% -0.003 -0.0924)
OKLCHoklch(28.1% 0.092 268.1)
XYZxyz(2.6409, 2.1040, 9.0692)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162456 #564816
analogous
#164456 #162456 #281656
triadic
#162456 #561624 #245616
tetradic
#162456 #561644 #564816 #165628
square
#162456 #561644 #564816 #165628
split-complementary
#162456 #562816 #445616
monochromatic
#060A18 #0A1025 #162456 #223887 #2F4DB7

Accessibility & contrast

On white

14.78
#162456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#162456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162456
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162456#FFFFFF#000000##FFFFFF
##1624561.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022B58
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#003039
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #162456;
/* rgb */ color: rgb(22, 36, 86);
/* oklch */ color: oklch(28.1% 0.092 268.1);
Tailwind
colors: {
  custom: {
    50: '#5d5e86',
    500: '#162456',
    950: '#000000',
  },
}
SCSS
$custom: #162456;
$custom-light: #5d5e86;
$custom-dark: #000000;
JSON
{
  "hex": "#162456",
  "rgb": {
    "r": 22,
    "g": 36,
    "b": 86
  },
  "hsl": {
    "h": 226.875,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28104,
    "c": 0.09244,
    "h": 268.1
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#162456
secondary
#8D7B3A
accent
#C045E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #162456

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

Preview Lab → · Contrast checker → · Palette generator →

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