#162889#162889

#162889 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.161 H 267.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#162889
RGBrgb(22, 40, 137)
HSLhsl(231, 72%, 31%)
HSVhsv(231, 84%, 54%)
CMYKcmyk(83.9%, 70.8%, 0%, 46.3%)
CIE-LABlab(21.92, 31.15, -55.50)
CIE-LCHlch(21.92, 63.64, 299.30°)
OKLaboklab(33.94% -0.0067 -0.1608)
OKLCHoklch(33.94% 0.161 267.6)
XYZxyz(5.6035, 3.4936, 24.0411)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162889 #897716
analogous
#166189 #162889 #3D1689
triadic
#162889 #891628 #288916
tetradic
#162889 #891661 #897716 #16893D
square
#162889 #891661 #897716 #16893D
split-complementary
#162889 #893D16 #618916
monochromatic
#050920 #0E1954 #162889 #1E37BE #3A54DF

Accessibility & contrast

On white

12.36
#162889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#162889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162889
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162889#FFFFFF#000000##FFFFFF
##1628891.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162889;
/* rgb */ color: rgb(22, 40, 137);
/* oklch */ color: oklch(33.9% 0.161 267.6);
Tailwind
colors: {
  custom: {
    50: '#6a62ac',
    500: '#162889',
    950: '#000000',
  },
}
SCSS
$custom: #162889;
$custom-light: #6a62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#162889",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 230.609,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3394,
    "c": 0.16096,
    "h": 267.6
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#162889
secondary
#BDA93E
accent
#D339EF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #162889

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

Preview Lab → · Contrast checker → · Palette generator →

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