#162152#162152

#162152 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.090 H 269.8°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#162152
RGBrgb(22, 33, 82)
HSLhsl(229, 58%, 20%)
HSVhsv(229, 73%, 32%)
CMYKcmyk(73.2%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.77, 13.98, -31.45)
CIE-LCHlch(14.77, 34.42, 293.97°)
OKLaboklab(27.06% -0.0003 -0.0904)
OKLCHoklch(27.06% 0.09 269.8)
XYZxyz(2.3972, 1.8673, 8.2151)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162152 #524716
analogous
#163F52 #162152 #291652
triadic
#162152 #521621 #215216
tetradic
#162152 #52163F #524716 #165229
square
#162152 #52163F #524716 #165229
split-complementary
#162152 #522916 #3F5216
monochromatic
#060A18 #090E22 #162152 #233482 #3048B3

Accessibility & contrast

On white

15.29
#162152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#162152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162152
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162152#FFFFFF#000000##FFFFFF
##1621521.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #162152;
/* rgb */ color: rgb(22, 33, 82);
/* oklch */ color: oklch(27.1% 0.090 269.8);
Tailwind
colors: {
  custom: {
    50: '#5c5b83',
    500: '#162152',
    950: '#000000',
  },
}
SCSS
$custom: #162152;
$custom-light: #5c5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#162152",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 229,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27059,
    "c": 0.09044,
    "h": 269.8
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#162152
secondary
#897B3A
accent
#C547E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #162152

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

Preview Lab → · Contrast checker → · Palette generator →

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