#162779#162779

#162779 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.140 H 267.9°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#162779
RGBrgb(22, 39, 121)
HSLhsl(230, 69%, 28%)
HSVhsv(230, 82%, 47%)
CMYKcmyk(81.8%, 67.8%, 0%, 52.5%)
CIE-LABlab(20.05, 25.58, -48.47)
CIE-LCHlch(20.05, 54.81, 297.82°)
OKLaboklab(32.08% -0.0051 -0.1403)
OKLCHoklch(32.08% 0.14 267.9)
XYZxyz(4.5064, 3.0016, 18.4273)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162779 #796816
analogous
#165879 #162779 #361679
triadic
#162779 #791627 #277916
tetradic
#162779 #791658 #796816 #167936
square
#162779 #791658 #796816 #167936
split-complementary
#162779 #793616 #587916
monochromatic
#05081A #0D1645 #162779 #1F38AD #304DD9

Accessibility & contrast

On white

13.12
#162779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#162779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162779
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162779#FFFFFF#000000##FFFFFF
##1627791.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162779;
/* rgb */ color: rgb(22, 39, 121);
/* oklch */ color: oklch(32.1% 0.140 267.9);
Tailwind
colors: {
  custom: {
    50: '#6661a1',
    500: '#162779',
    950: '#000000',
  },
}
SCSS
$custom: #162779;
$custom-light: #6661a1;
$custom-dark: #000000;
JSON
{
  "hex": "#162779",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 229.697,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32084,
    "c": 0.14039,
    "h": 267.9
  },
  "luminance": 0.03002
}

Semantic roles & 50–950 ramp

primary
#162779
secondary
#AE9B3D
accent
#CE3CEC
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162779

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

Preview Lab → · Contrast checker → · Palette generator →

#162779 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva