#162A7B#162A7B

#162A7B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.139 H 267.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#162A7B
RGBrgb(22, 42, 123)
HSLhsl(228, 70%, 28%)
HSVhsv(228, 82%, 48%)
CMYKcmyk(82.1%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.04, 24.29, -48.12)
CIE-LCHlch(21.04, 53.90, 296.78°)
OKLaboklab(32.87% -0.0069 -0.1393)
OKLCHoklch(32.87% 0.139 267.2)
XYZxyz(4.7327, 3.2560, 19.1141)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A7B #7B6716
analogous
#165C7B #162A7B #34167B
triadic
#162A7B #7B162A #2A7B16
tetradic
#162A7B #7B165C #7B6716 #167B34
square
#162A7B #7B165C #7B6716 #167B34
split-complementary
#162A7B #7B3416 #5C7B16
monochromatic
#05091A #0D1847 #162A7B #1F3CAF #3153DA

Accessibility & contrast

On white

12.72
#162A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A7B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A7B#FFFFFF#000000##FFFFFF
##162A7B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162a7b;
/* rgb */ color: rgb(22, 42, 123);
/* oklch */ color: oklch(32.9% 0.139 267.2);
Tailwind
colors: {
  custom: {
    50: '#6663a2',
    500: '#162a7b',
    950: '#000000',
  },
}
SCSS
$custom: #162a7b;
$custom-light: #6663a2;
$custom-dark: #000000;
JSON
{
  "hex": "#162a7b",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 228.119,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32872,
    "c": 0.13942,
    "h": 267.2
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#162A7B
secondary
#B0993D
accent
#C93BEC
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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