#162168#162168

#162168 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.2% C 0.124 H 269.8°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#162168
RGBrgb(22, 33, 104)
HSLhsl(232, 65%, 25%)
HSVhsv(232, 79%, 41%)
CMYKcmyk(78.8%, 68.3%, 0%, 59.2%)
CIE-LABlab(16.78, 22.99, -42.84)
CIE-LCHlch(16.78, 48.62, 298.22°)
OKLaboklab(29.18% -0.0003 -0.1239)
OKLCHoklch(29.18% 0.124 269.8)
XYZxyz(3.3726, 2.2574, 13.3520)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162168 #685D16
analogous
#164A68 #162168 #341668
triadic
#162168 #681621 #216816
tetradic
#162168 #68164A #685D16 #166834
square
#162168 #68164A #685D16 #166834
split-complementary
#162168 #683416 #4A6816
monochromatic
#050819 #0B1135 #162168 #21319B #2B41CD

Accessibility & contrast

On white

14.47
#162168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#162168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162168
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162168#FFFFFF#000000##FFFFFF
##1621681.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#003441
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #162168;
/* rgb */ color: rgb(22, 33, 104);
/* oklch */ color: oklch(29.2% 0.124 269.8);
Tailwind
colors: {
  custom: {
    50: '#625c94',
    500: '#162168',
    950: '#000000',
  },
}
SCSS
$custom: #162168;
$custom-light: #625c94;
$custom-dark: #000000;
JSON
{
  "hex": "#162168",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 231.951,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29176,
    "c": 0.12387,
    "h": 269.8
  },
  "luminance": 0.02258
}

Semantic roles & 50–950 ramp

primary
#162168
secondary
#9F913B
accent
#D140E8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #162168

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

Preview Lab → · Contrast checker → · Palette generator →

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