#162B7C#162B7C

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

Color values

HEX#162B7C
RGBrgb(22, 43, 124)
HSLhsl(228, 70%, 29%)
HSVhsv(228, 82%, 49%)
CMYKcmyk(82.3%, 65.3%, 0%, 51.4%)
CIE-LABlab(21.41, 23.99, -48.16)
CIE-LCHlch(21.41, 53.80, 296.48°)
OKLaboklab(33.17% -0.0076 -0.1393)
OKLCHoklch(33.17% 0.14 266.9)
XYZxyz(4.8316, 3.3530, 19.4574)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B7C #7C6716
analogous
#165E7C #162B7C #34167C
triadic
#162B7C #7C162B #2B7C16
tetradic
#162B7C #7C165E #7C6716 #167C34
square
#162B7C #7C165E #7C6716 #167C34
split-complementary
#162B7C #7C3416 #5E7C16
monochromatic
#05091A #0D1948 #162B7C #1F3DB0 #3255DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##162B7C#FFFFFF#000000##FFFFFF
##162B7C1.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)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162b7c;
/* rgb */ color: rgb(22, 43, 124);
/* oklch */ color: oklch(33.2% 0.140 266.9);
Tailwind
colors: {
  custom: {
    50: '#6664a3',
    500: '#162b7c',
    950: '#000000',
  },
}
SCSS
$custom: #162b7c;
$custom-light: #6664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162b7c",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 227.647,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3317,
    "c": 0.13955,
    "h": 266.9
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#162B7C
secondary
#B1993D
accent
#C83BED
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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