#162158#162158

#162158 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.100 H 270.0°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#162158
RGBrgb(22, 33, 88)
HSLhsl(230, 60%, 22%)
HSVhsv(230, 75%, 35%)
CMYKcmyk(75%, 62.5%, 0%, 65.5%)
CIE-LABlab(15.29, 16.47, -34.67)
CIE-LCHlch(15.29, 38.38, 295.41°)
OKLaboklab(27.61% 0 -0.0999)
OKLCHoklch(27.61% 0.1 270)
XYZxyz(2.6356, 1.9626, 9.4706)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162158 #584D16
analogous
#164258 #162158 #2C1658
triadic
#162158 #581621 #215816
tetradic
#162158 #581642 #584D16 #16582C
square
#162158 #581642 #584D16 #16582C
split-complementary
#162158 #582C16 #425816
monochromatic
#060918 #0A0F27 #162158 #223389 #2E46BA

Accessibility & contrast

On white

15.08
#162158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162158
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162158#FFFFFF#000000##FFFFFF
##1621581.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #162158;
/* rgb */ color: rgb(22, 33, 88);
/* oklch */ color: oklch(27.6% 0.100 270.0);
Tailwind
colors: {
  custom: {
    50: '#5d5c88',
    500: '#162158',
    950: '#000000',
  },
}
SCSS
$custom: #162158;
$custom-light: #5d5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#162158",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 230,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27607,
    "c": 0.09989,
    "h": 270
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#162158
secondary
#8F813B
accent
#C945E3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #162158

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

Preview Lab → · Contrast checker → · Palette generator →

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