#162172#162172

#162172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.138 H 269.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#162172
RGBrgb(22, 33, 114)
HSLhsl(233, 68%, 27%)
HSVhsv(233, 81%, 45%)
CMYKcmyk(80.7%, 71.1%, 0%, 55.3%)
CIE-LABlab(17.80, 26.95, -47.68)
CIE-LCHlch(17.80, 54.77, 299.47°)
OKLaboklab(30.22% -0.0011 -0.138)
OKLCHoklch(30.22% 0.138 269.5)
XYZxyz(3.9110, 2.4728, 16.1875)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162172 #726716
analogous
#164F72 #162172 #391672
triadic
#162172 #721621 #217216
tetradic
#162172 #72164F #726716 #167239
square
#162172 #72164F #726716 #167239
split-complementary
#162172 #723916 #4F7216
monochromatic
#05071A #0C123F #162172 #2030A5 #2C40D6

Accessibility & contrast

On white

14.05
#162172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#162172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162172
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162172#FFFFFF#000000##FFFFFF
##1621721.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #162172;
/* rgb */ color: rgb(22, 33, 114);
/* oklch */ color: oklch(30.2% 0.138 269.5);
Tailwind
colors: {
  custom: {
    50: '#655c9b',
    500: '#162172',
    950: '#000000',
  },
}
SCSS
$custom: #162172;
$custom-light: #655c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#162172",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 232.826,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30222,
    "c": 0.13803,
    "h": 269.5
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#162172
secondary
#A89B3C
accent
#D63DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #162172

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

Preview Lab → · Contrast checker → · Palette generator →

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