#162154#162154

#162154 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.094 H 269.9°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#162154
RGBrgb(22, 33, 84)
HSLhsl(229, 58%, 21%)
HSVhsv(229, 74%, 33%)
CMYKcmyk(73.8%, 60.7%, 0%, 67.1%)
CIE-LABlab(14.94, 14.81, -32.53)
CIE-LCHlch(14.94, 35.75, 294.48°)
OKLaboklab(27.24% -0.0002 -0.0936)
OKLCHoklch(27.24% 0.094 269.9)
XYZxyz(2.4744, 1.8981, 8.6218)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162154 #544916
analogous
#164054 #162154 #2A1654
triadic
#162154 #541621 #215416
tetradic
#162154 #541640 #544916 #16542A
square
#162154 #541640 #544916 #16542A
split-complementary
#162154 #542A16 #405416
monochromatic
#060A18 #090E24 #162154 #233484 #2F47B5

Accessibility & contrast

On white

15.22
#162154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#162154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162154
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162154#FFFFFF#000000##FFFFFF
##1621541.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #162154;
/* rgb */ color: rgb(22, 33, 84);
/* oklch */ color: oklch(27.2% 0.094 269.9);
Tailwind
colors: {
  custom: {
    50: '#5c5b85',
    500: '#162154',
    950: '#000000',
  },
}
SCSS
$custom: #162154;
$custom-light: #5c5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#162154",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 229.355,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27239,
    "c": 0.09362,
    "h": 269.9
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#162154
secondary
#8B7D3A
accent
#C646E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #162154

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

Preview Lab → · Contrast checker → · Palette generator →

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