#162157#162157

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

Color values

HEX#162157
RGBrgb(22, 33, 87)
HSLhsl(230, 60%, 21%)
HSVhsv(230, 75%, 34%)
CMYKcmyk(74.7%, 62.1%, 0%, 65.9%)
CIE-LABlab(15.20, 16.05, -34.14)
CIE-LCHlch(15.20, 37.72, 295.19°)
OKLaboklab(27.51% 0 -0.0983)
OKLCHoklch(27.51% 0.098 270)
XYZxyz(2.5944, 1.9462, 9.2539)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162157 #574C16
analogous
#164257 #162157 #2C1657
triadic
#162157 #571621 #215716
tetradic
#162157 #571642 #574C16 #16572C
square
#162157 #571642 #574C16 #16572C
split-complementary
#162157 #572C16 #425716
monochromatic
#060918 #0A0E26 #162157 #223488 #2F46B9

Accessibility & contrast

On white

15.12
#162157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162157
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162157#FFFFFF#000000##FFFFFF
##1621571.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #162157;
/* rgb */ color: rgb(22, 33, 87);
/* oklch */ color: oklch(27.5% 0.098 270.0);
Tailwind
colors: {
  custom: {
    50: '#5d5b87',
    500: '#162157',
    950: '#000000',
  },
}
SCSS
$custom: #162157;
$custom-light: #5d5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#162157",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 229.846,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27514,
    "c": 0.09834,
    "h": 270
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#162157
secondary
#8E803A
accent
#C845E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #162157

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

Preview Lab → · Contrast checker → · Palette generator →

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