#162C7A#162C7A

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

Color values

HEX#162C7A
RGBrgb(22, 44, 122)
HSLhsl(227, 69%, 28%)
HSVhsv(227, 82%, 48%)
CMYKcmyk(82%, 63.9%, 0%, 52.2%)
CIE-LABlab(21.49, 22.48, -46.75)
CIE-LCHlch(21.49, 51.87, 295.68°)
OKLaboklab(33.18% -0.0082 -0.1352)
OKLCHoklch(33.18% 0.135 266.5)
XYZxyz(4.7432, 3.3765, 18.8103)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C7A #7A6416
analogous
#165E7A #162C7A #32167A
triadic
#162C7A #7A162C #2C7A16
tetradic
#162C7A #7A165E #7A6416 #167A32
square
#162C7A #7A165E #7A6416 #167A32
split-complementary
#162C7A #7A3216 #5E7A16
monochromatic
#05091A #0D1946 #162C7A #1F3FAE #3156DA

Accessibility & contrast

On white

12.53
#162C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#162C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C7A
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C7A#FFFFFF#000000##FFFFFF
##162C7A1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162c7a;
/* rgb */ color: rgb(22, 44, 122);
/* oklch */ color: oklch(33.2% 0.135 266.5);
Tailwind
colors: {
  custom: {
    50: '#6664a1',
    500: '#162c7a',
    950: '#000000',
  },
}
SCSS
$custom: #162c7a;
$custom-light: #6664a1;
$custom-dark: #000000;
JSON
{
  "hex": "#162c7a",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 226.8,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33178,
    "c": 0.13545,
    "h": 266.5
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #162C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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