#162B80#162B80

#162B80 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.145 H 267.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#162B80
RGBrgb(22, 43, 128)
HSLhsl(228, 71%, 29%)
HSVhsv(228, 83%, 50%)
CMYKcmyk(82.8%, 66.4%, 0%, 49.8%)
CIE-LABlab(21.79, 25.59, -50.07)
CIE-LCHlch(21.79, 56.23, 297.07°)
OKLaboklab(33.57% -0.0077 -0.1449)
OKLCHoklch(33.57% 0.145 267)
XYZxyz(5.0897, 3.4562, 20.8168)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B80 #806B16
analogous
#166080 #162B80 #361680
triadic
#162B80 #80162B #2B8016
tetradic
#162B80 #801660 #806B16 #168036
square
#162B80 #801660 #806B16 #168036
split-complementary
#162B80 #803616 #608016
monochromatic
#04091A #0D194C #162B80 #1F3DB4 #3456DC

Accessibility & contrast

On white

12.42
#162B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B80
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B80#FFFFFF#000000##FFFFFF
##162B801.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162b80;
/* rgb */ color: rgb(22, 43, 128);
/* oklch */ color: oklch(33.6% 0.145 267.0);
Tailwind
colors: {
  custom: {
    50: '#6764a6',
    500: '#162b80',
    950: '#000000',
  },
}
SCSS
$custom: #162b80;
$custom-light: #6764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162b80",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 228.113,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.14514,
    "h": 267
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#162B80
secondary
#B59D3D
accent
#CA3AED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162B80

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

Preview Lab → · Contrast checker → · Palette generator →

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