#162C79#162C79

#162C79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.1% C 0.134 H 266.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#162C79
RGBrgb(22, 44, 121)
HSLhsl(227, 69%, 28%)
HSVhsv(227, 82%, 47%)
CMYKcmyk(81.8%, 63.6%, 0%, 52.5%)
CIE-LABlab(21.40, 22.07, -46.26)
CIE-LCHlch(21.40, 51.25, 295.50°)
OKLaboklab(33.08% -0.0082 -0.1338)
OKLCHoklch(33.08% 0.134 266.5)
XYZxyz(4.6815, 3.3519, 18.4857)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C79 #796316
analogous
#165D79 #162C79 #321679
triadic
#162C79 #79162C #2C7916
tetradic
#162C79 #79165D #796316 #167932
square
#162C79 #79165D #796316 #167932
split-complementary
#162C79 #793216 #5D7916
monochromatic
#05091A #0D1945 #162C79 #1F3FAD #3056D9

Accessibility & contrast

On white

12.57
#162C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#162C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C79
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C79#FFFFFF#000000##FFFFFF
##162C791.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162c79;
/* rgb */ color: rgb(22, 44, 121);
/* oklch */ color: oklch(33.1% 0.134 266.5);
Tailwind
colors: {
  custom: {
    50: '#6564a0',
    500: '#162c79',
    950: '#000000',
  },
}
SCSS
$custom: #162c79;
$custom-light: #6564a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162c79",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 226.667,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33081,
    "c": 0.13402,
    "h": 266.5
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#162C79
secondary
#AE953D
accent
#C53CEC
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162C79

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

Preview Lab → · Contrast checker → · Palette generator →

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