#162989#162989

#162989 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.160 H 267.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#162989
RGBrgb(22, 41, 137)
HSLhsl(230, 72%, 31%)
HSVhsv(230, 84%, 54%)
CMYKcmyk(83.9%, 70.1%, 0%, 46.3%)
CIE-LABlab(22.17, 30.48, -55.10)
CIE-LCHlch(22.17, 62.97, 298.95°)
OKLaboklab(34.12% -0.0071 -0.1596)
OKLCHoklch(34.12% 0.16 267.4)
XYZxyz(5.6376, 3.5619, 24.0525)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162989 #897616
analogous
#166289 #162989 #3C1689
triadic
#162989 #891629 #298916
tetradic
#162989 #891662 #897616 #16893C
square
#162989 #891662 #897616 #16893C
split-complementary
#162989 #893C16 #628916
monochromatic
#050920 #0E1954 #162989 #1E39BE #3A55DF

Accessibility & contrast

On white

12.26
#162989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#162989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162989
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162989#FFFFFF#000000##FFFFFF
##1629891.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162989;
/* rgb */ color: rgb(22, 41, 137);
/* oklch */ color: oklch(34.1% 0.160 267.4);
Tailwind
colors: {
  custom: {
    50: '#6a63ac',
    500: '#162989',
    950: '#000000',
  },
}
SCSS
$custom: #162989;
$custom-light: #6a63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#162989",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 230.087,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34118,
    "c": 0.15979,
    "h": 267.4
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#162989
secondary
#BDA83E
accent
#D139EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #162989

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

Preview Lab → · Contrast checker → · Palette generator →

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