#162C7B#162C7B

#162C7B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.137 H 266.6°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#162C7B
RGBrgb(22, 44, 123)
HSLhsl(227, 70%, 28%)
HSVhsv(227, 82%, 48%)
CMYKcmyk(82.1%, 64.2%, 0%, 51.8%)
CIE-LABlab(21.58, 22.88, -47.23)
CIE-LCHlch(21.58, 52.48, 295.85°)
OKLaboklab(33.27% -0.0082 -0.1366)
OKLCHoklch(33.27% 0.137 266.6)
XYZxyz(4.8055, 3.4014, 19.1383)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C7B #7B6516
analogous
#165E7B #162C7B #32167B
triadic
#162C7B #7B162C #2C7B16
tetradic
#162C7B #7B165E #7B6516 #167B32
square
#162C7B #7B165E #7B6516 #167B32
split-complementary
#162C7B #7B3216 #5E7B16
monochromatic
#05091A #0D1947 #162C7B #1F3FAF #3156DA

Accessibility & contrast

On white

12.50
#162C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162C7B
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C7B#FFFFFF#000000##FFFFFF
##162C7B1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162c7b;
/* rgb */ color: rgb(22, 44, 123);
/* oklch */ color: oklch(33.3% 0.137 266.6);
Tailwind
colors: {
  custom: {
    50: '#6664a2',
    500: '#162c7b',
    950: '#000000',
  },
}
SCSS
$custom: #162c7b;
$custom-light: #6664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#162c7b",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 226.931,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33274,
    "c": 0.13686,
    "h": 266.6
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#162C7B
secondary
#B0973D
accent
#C63BEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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