#162789#162789

#162789 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.162 H 267.8°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#162789
RGBrgb(22, 39, 137)
HSLhsl(231, 72%, 31%)
HSVhsv(231, 84%, 54%)
CMYKcmyk(83.9%, 71.5%, 0%, 46.3%)
CIE-LABlab(21.68, 31.80, -55.90)
CIE-LCHlch(21.68, 64.31, 299.64°)
OKLaboklab(33.76% -0.0062 -0.162)
OKLCHoklch(33.76% 0.162 267.8)
XYZxyz(5.5702, 3.4271, 24.0300)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162789 #897816
analogous
#166089 #162789 #3E1689
triadic
#162789 #891627 #278916
tetradic
#162789 #891660 #897816 #16893E
square
#162789 #891660 #897816 #16893E
split-complementary
#162789 #893E16 #608916
monochromatic
#050920 #0E1854 #162789 #1E36BE #3A52DF

Accessibility & contrast

On white

12.46
#162789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162789
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162789#FFFFFF#000000##FFFFFF
##1627891.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162789;
/* rgb */ color: rgb(22, 39, 137);
/* oklch */ color: oklch(33.8% 0.162 267.8);
Tailwind
colors: {
  custom: {
    50: '#6a61ac',
    500: '#162789',
    950: '#000000',
  },
}
SCSS
$custom: #162789;
$custom-light: #6a61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#162789",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 231.13,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33764,
    "c": 0.1621,
    "h": 267.8
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#162789
secondary
#BDAA3E
accent
#D439EF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #162789

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

Preview Lab → · Contrast checker → · Palette generator →

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