#162D72#162D72

#162D72 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.6% C 0.123 H 265.8°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#162D72
RGBrgb(22, 45, 114)
HSLhsl(225, 68%, 27%)
HSVhsv(225, 81%, 45%)
CMYKcmyk(80.7%, 60.5%, 0%, 55.3%)
CIE-LABlab(21.06, 18.48, -42.33)
CIE-LCHlch(21.06, 46.19, 293.58°)
OKLaboklab(32.64% -0.009 -0.1222)
OKLCHoklch(32.64% 0.123 265.8)
XYZxyz(4.3055, 3.2618, 16.3190)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D72 #725B16
analogous
#165B72 #162D72 #2D1672
triadic
#162D72 #72162D #2D7216
tetradic
#162D72 #72165B #725B16 #16722D
square
#162D72 #72165B #725B16 #16722D
split-complementary
#162D72 #722D16 #5B7216
monochromatic
#050A1A #0C193F #162D72 #2041A5 #2C57D6

Accessibility & contrast

On white

12.71
#162D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#162D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D72
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D72#FFFFFF#000000##FFFFFF
##162D721.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162d72;
/* rgb */ color: rgb(22, 45, 114);
/* oklch */ color: oklch(32.6% 0.123 265.8);
Tailwind
colors: {
  custom: {
    50: '#63659b',
    500: '#162d72',
    950: '#000000',
  },
}
SCSS
$custom: #162d72;
$custom-light: #63659b;
$custom-dark: #000000;
JSON
{
  "hex": "#162d72",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 225,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32636,
    "c": 0.12257,
    "h": 265.8
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#162D72
secondary
#A88D3C
accent
#BF3DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #162D72

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

Preview Lab → · Contrast checker → · Palette generator →

#162D72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva