#162354#162354

#162354 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.091 H 268.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#162354
RGBrgb(22, 35, 84)
HSLhsl(227, 58%, 21%)
HSVhsv(227, 74%, 33%)
CMYKcmyk(73.8%, 58.3%, 0%, 67.1%)
CIE-LABlab(15.55, 13.32, -31.55)
CIE-LCHlch(15.55, 34.24, 292.89°)
OKLaboklab(27.7% -0.0022 -0.0907)
OKLCHoklch(27.7% 0.091 268.6)
XYZxyz(2.5316, 2.0125, 8.6408)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162354 #544716
analogous
#164254 #162354 #281654
triadic
#162354 #541623 #235416
tetradic
#162354 #541642 #544716 #165428
square
#162354 #541642 #544716 #165428
split-complementary
#162354 #542816 #425416
monochromatic
#060A18 #090F24 #162354 #233784 #2F4BB5

Accessibility & contrast

On white

14.97
#162354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#162354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162354
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162354#FFFFFF#000000##FFFFFF
##1623541.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022A56
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #162354;
/* rgb */ color: rgb(22, 35, 84);
/* oklch */ color: oklch(27.7% 0.091 268.6);
Tailwind
colors: {
  custom: {
    50: '#5c5d84',
    500: '#162354',
    950: '#000000',
  },
}
SCSS
$custom: #162354;
$custom-light: #5c5d84;
$custom-dark: #000000;
JSON
{
  "hex": "#162354",
  "rgb": {
    "r": 22,
    "g": 35,
    "b": 84
  },
  "hsl": {
    "h": 227.419,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27697,
    "c": 0.09072,
    "h": 268.6
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#162354
secondary
#8B7A3A
accent
#C146E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #162354

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

Preview Lab → · Contrast checker → · Palette generator →

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